diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 93aa5ea8a..2c29e318f 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -19,18 +19,17 @@ class FeedItem_RSS extends FeedItem_Common { } function get_link() { + $link = $this->xpath->query("atom:link", $this->elem)->item(0); + + if ($link) { + return $link->getAttribute("href"); + } + $link = $this->elem->getElementsByTagName("link")->item(0); if ($link) { return $link->nodeValue; } - - $link = $this->xpath->query("atom:link", $this->elem)->item(0); - - if ($link) { - return $link->nodeValue; - } - } function get_title() {