X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FXML.php;h=963161fbffb2add74f70d8874380a795800e6a1e;hb=8dc0ab9bb3379fec0be442160db1ae29ef8cea9d;hp=7b4539ba8cdd10a066ba44c52730d432ddb90168;hpb=054c301ef0345c4ff9f35cfd08717757eab17b9d;p=friendica.git diff --git a/src/Util/XML.php b/src/Util/XML.php index 7b4539ba8c..963161fbff 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -1,6 +1,6 @@ code . " at " . $err->line . ":" . $err->column . " : " . $err->message, Logger::DATA); + Logger::debug('libxml: parse: ' . $err->code . " at " . $err->line . ":" . $err->column . " : " . $err->message); } libxml_clear_errors(); return; @@ -475,7 +475,7 @@ class XML public static function getFirstAttributes(DOMXPath $xpath, $element, $context = null) { - $result = $xpath->query($element, $context); + $result = @$xpath->query($element, $context); if (!is_object($result)) { return false; } @@ -490,7 +490,7 @@ class XML public static function getFirstValue($xpath, $search, $context) { - $result = $xpath->query($search, $context); + $result = @$xpath->query($search, $context); if (!is_object($result)) { return ''; }