summaryrefslogtreecommitdiff
path: root/lib/activity.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-19 15:28:25 -0500
committerEvan Prodromou <evan@status.net>2010-03-19 15:28:25 -0500
commit13b1acdd084289d1f1a0c02c51633bdd92b46cf1 (patch)
treeb7ad41e90d4bad9cbd7d2cc2696945196845b5e1 /lib/activity.php
parent5092f98c0d7a7db24189aaaf285b6670741fde39 (diff)
only search elements for links
Diffstat (limited to 'lib/activity.php')
-rw-r--r--lib/activity.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/activity.php b/lib/activity.php
index 5b304020d..8546b474d 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);