From: Michael Date: Sat, 21 May 2022 06:04:34 +0000 (+0000) Subject: Avoid warning "Undefined namespace prefix" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3444c29b0bf56b84d58516991f65cebb03fb627e;p=friendica.git Avoid warning "Undefined namespace prefix" --- diff --git a/src/Util/XML.php b/src/Util/XML.php index 963161fbff..f00cb7894c 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -460,7 +460,7 @@ class XML public static function getFirstNodeValue(DOMXPath $xpath, $element, $context = null) { - $result = $xpath->evaluate($element, $context); + $result = @$xpath->evaluate($element, $context); if (!is_object($result)) { return ''; }