Avoid warning "Undefined namespace prefix"

pull/11543/head
Michael 2022-05-21 06:04:34 +00:00
rodzic 11538376ed
commit 3444c29b0b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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