diff options
author | Sarven Capadisli <csarven@status.net> | 2010-03-03 12:57:03 -0500 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-03-03 12:57:03 -0500 |
commit | 2c9887bce55de22587357e861051aed90dd00341 (patch) | |
tree | a2feaa90d0e9480dc855fdec949f5476b832291c /plugins/OStatus/lib/xrd.php | |
parent | c8bdf3cacbff1e5ce92b4553480e44d9f0053158 (diff) | |
parent | f3cea2430497e751bc7776fe3abf0603e2b55f8b (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/lib/xrd.php')
-rw-r--r-- | plugins/OStatus/lib/xrd.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/OStatus/lib/xrd.php b/plugins/OStatus/lib/xrd.php index 85df26c54..f00e1f809 100644 --- a/plugins/OStatus/lib/xrd.php +++ b/plugins/OStatus/lib/xrd.php @@ -149,9 +149,11 @@ class XRD $link['href'] = $element->getAttribute('href'); $link['template'] = $element->getAttribute('template'); foreach ($element->childNodes as $node) { - switch($node->tagName) { - case 'Title': - $link['title'][] = $node->nodeValue; + if ($node instanceof DOMElement) { + switch($node->tagName) { + case 'Title': + $link['title'][] = $node->nodeValue; + } } } |