From 4ccd4ae24ddee1f65c2c777c608fa662e280f8b4 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 21 Oct 2017 20:35:45 +0200 Subject: [PATCH] Keep errors internal --- bl-kernel/helpers/dom.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/helpers/dom.class.php b/bl-kernel/helpers/dom.class.php index 3917035a..6cbc9252 100644 --- a/bl-kernel/helpers/dom.class.php +++ b/bl-kernel/helpers/dom.class.php @@ -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(''.$content); $finder = new DomXPath($dom);