mirror of
https://github.com/friendica/friendica
synced 2025-01-09 14:04:43 +00:00
Merge pull request #11543 from annando/warning
Avoid warning "Undefined namespace prefix"
This commit is contained in:
commit
9e19043c15
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ class XML
|
||||||
|
|
||||||
public static function getFirstNodeValue(DOMXPath $xpath, $element, $context = null)
|
public static function getFirstNodeValue(DOMXPath $xpath, $element, $context = null)
|
||||||
{
|
{
|
||||||
$result = $xpath->evaluate($element, $context);
|
$result = @$xpath->evaluate($element, $context);
|
||||||
if (!is_object($result)) {
|
if (!is_object($result)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue