only search elements for links
This commit is contained in:
parent
5092f98c0d
commit
13b1acdd08
|
@ -347,6 +347,11 @@ class ActivityUtils
|
||||||
$els = $element->childNodes;
|
$els = $element->childNodes;
|
||||||
|
|
||||||
foreach ($els as $link) {
|
foreach ($els as $link) {
|
||||||
|
|
||||||
|
if (!($link instanceof DOMElement)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($link->localName == self::LINK && $link->namespaceURI == self::ATOM) {
|
if ($link->localName == self::LINK && $link->namespaceURI == self::ATOM) {
|
||||||
|
|
||||||
$linkRel = $link->getAttribute(self::REL);
|
$linkRel = $link->getAttribute(self::REL);
|
||||||
|
|
Loading…
Reference in New Issue