]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix atom <author>value</author> elements
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 2 May 2013 06:36:05 +0000 (10:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 2 May 2013 06:36:05 +0000 (10:36 +0400)
classes/feeditem/common.php

index fca9433a42fc2e827aae1698d9cb0c389060de94..0787a42cbf9619b04a4ed2acbeaeed67ba7efc07 100644 (file)
@@ -21,6 +21,9 @@ abstract class FeedItem_Common extends FeedItem {
                        $email = $author->getElementsByTagName("email")->item(0);
 
                        if ($email) return $email->nodeValue;
+
+                       if ($author->nodeValue)
+                               return $author->nodeValue;
                }
 
                $author = $this->xpath->query("dc:creator", $this->elem)->item(0);