mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 00:22:55 +01:00
Debug v21
This commit is contained in:
committed by
Laurent Destailleur
parent
06914d9099
commit
1f884b84ce
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user