diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-05-02 10:36:05 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-05-02 10:36:05 +0400 |
| commit | 602fe53496fcc5c95983bebf0d789d01cdf3e5aa (patch) | |
| tree | edfd105edd1160869fc03328088c0482ea035309 | |
| parent | 99b82567944a96afb70ab7af1f0bd344ac3ab95a (diff) | |
fix atom <author>value</author> elements
| -rw-r--r-- | classes/feeditem/common.php | 3 |
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); |