]> git.mxchange.org Git - friendica.git/commitdiff
Avoid warning "Undefined namespace prefix"
authorMichael <heluecht@pirati.ca>
Sat, 21 May 2022 06:04:34 +0000 (06:04 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 May 2022 06:04:34 +0000 (06:04 +0000)
src/Util/XML.php

index 963161fbffb2add74f70d8874380a795800e6a1e..f00cb7894cb2054d130dc462d459620b3d18e951 100644 (file)
@@ -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 '';
                }