Avoid warning "Undefined namespace prefix"

This commit is contained in:
Michael 2022-05-21 06:04:34 +00:00
parent 11538376ed
commit 3444c29b0b

View 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 '';
}