Debug v21
This commit is contained in:
parent
06914d9099
commit
1f884b84ce
1 changed files with 3 additions and 1 deletions
|
|
@ -1354,7 +1354,9 @@ function getImageFromHtmlContent($htmlContent, $imageNumber = 1)
|
|||
}
|
||||
|
||||
// Load HTML content into object
|
||||
$dom->loadHTML($htmlContent);
|
||||
// We add the @ to avoid verbose warnings logsin the error.log file. For example:
|
||||
// "PHP message: PHP Warning: DOMDocument::loadHTML(): Tag section invalid in Entity, line: ...", etc.
|
||||
@$dom->loadHTML($htmlContent);
|
||||
|
||||
// Re-enable HTML load errors
|
||||
libxml_clear_errors();
|
||||
|
|
|
|||
Loading…
Reference in a new issue