From 13b1acdd084289d1f1a0c02c51633bdd92b46cf1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 19 Mar 2010 15:28:25 -0500 Subject: [PATCH] only search elements for links --- lib/activity.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5