only search elements for links

This commit is contained in:
Evan Prodromou 2010-03-19 15:28:25 -05:00
parent 5092f98c0d
commit 13b1acdd08
1 changed files with 5 additions and 0 deletions

View File

@ -347,6 +347,11 @@ class ActivityUtils
$els = $element->childNodes;
foreach ($els as $link) {
if (!($link instanceof DOMElement)) {
continue;
}
if ($link->localName == self::LINK && $link->namespaceURI == self::ATOM) {
$linkRel = $link->getAttribute(self::REL);