Merge pull request #11543 from annando/warning

Avoid warning "Undefined namespace prefix"
This commit is contained in:
Tobias Diekershoff 2022-05-21 08:18:59 +02:00 committed by GitHub
commit 9e19043c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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