summaryrefslogtreecommitdiff
path: root/classes/feeditem
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-02 10:36:05 +0400
committerAndrew Dolgov <[email protected]>2013-05-02 10:36:05 +0400
commit602fe53496fcc5c95983bebf0d789d01cdf3e5aa (patch)
treeedfd105edd1160869fc03328088c0482ea035309 /classes/feeditem
parent99b82567944a96afb70ab7af1f0bd344ac3ab95a (diff)
fix atom <author>value</author> elements
Diffstat (limited to 'classes/feeditem')
-rw-r--r--classes/feeditem/common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/feeditem/common.php b/classes/feeditem/common.php
index fca9433a4..0787a42cb 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);