]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
only search elements for links
authorEvan Prodromou <evan@status.net>
Fri, 19 Mar 2010 20:28:25 +0000 (15:28 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 19 Mar 2010 20:28:25 +0000 (15:28 -0500)
lib/activity.php

index 5b304020d6be228cf51c707a205f400880510700..8546b474d228759862b607038a01d27f874da934 100644 (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);