Keep errors internal

This commit is contained in:
Diego Najar 2017-10-21 20:35:45 +02:00
parent df978c0a75
commit 4ccd4ae24d

View File

@ -5,7 +5,7 @@ class DOM {
public static function getFirstImage($content)
{
// Disable warning
libxml_use_internal_errors();
libxml_use_internal_errors(true);
$dom = new DOMDocument();
$dom->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">'.$content);
$finder = new DomXPath($dom);