From: Evan Prodromou Date: Fri, 19 Mar 2010 20:28:25 +0000 (-0500) Subject: only search elements for links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=13b1acdd084289d1f1a0c02c51633bdd92b46cf1;p=quix0rs-gnu-social.git only search elements for links --- diff --git a/lib/activity.php b/lib/activity.php index 5b304020d6..8546b474d2 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -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);