fix atom <author>value</author> elements

This commit is contained in:
Andrew Dolgov 2013-05-02 10:36:05 +04:00
parent 99b8256794
commit 602fe53496
1 changed files with 3 additions and 0 deletions

View 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);