simplepie: fix entry_author parsing

This commit is contained in:
Andrew Dolgov 2008-02-07 17:13:42 +01:00
parent 60164936d9
commit a0c6eafbbc
1 changed files with 2 additions and 1 deletions

View File

@ -880,7 +880,8 @@
$entry_comments = strip_tags($item->data["comments"]); $entry_comments = strip_tags($item->data["comments"]);
if ($item->get_author()) { if ($item->get_author()) {
$entry_author_item = $item->get_author(); $entry_author_item = $item->get_author();
$entry_author = $entry_author_item->get_name(); $entry_author = $entry_author_item->get_name();
if (!$entry_author) $entry_author = $entry_author_item->get_email();
} }
} else { } else {
$entry_comments = strip_tags($item["comments"]); $entry_comments = strip_tags($item["comments"]);