From: Andrew Dolgov Date: Thu, 2 May 2013 06:36:05 +0000 (+0400) Subject: fix atom value elements X-Git-Tag: 1.7.9~25^2~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=602fe53496fcc5c95983bebf0d789d01cdf3e5aa;p=tt-rss.git fix atom value elements --- diff --git a/classes/feeditem/common.php b/classes/feeditem/common.php index fca9433a..0787a42c 100644 --- a/classes/feeditem/common.php +++ b/classes/feeditem/common.php @@ -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);