From 3444c29b0bf56b84d58516991f65cebb03fb627e Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 May 2022 06:04:34 +0000 Subject: [PATCH] Avoid warning "Undefined namespace prefix" --- src/Util/XML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } -- 2.39.5