From: Andrew Dolgov Date: Thu, 7 Feb 2008 16:13:42 +0000 (+0100) Subject: simplepie: fix entry_author parsing X-Git-Tag: 1.2.20~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a0c6eafbbc852a231cf6cc2673ba13c68d71d5b2;p=tt-rss.git simplepie: fix entry_author parsing --- diff --git a/functions.php b/functions.php index 47041088..0b4a32a4 100644 --- a/functions.php +++ b/functions.php @@ -880,7 +880,8 @@ $entry_comments = strip_tags($item->data["comments"]); if ($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 { $entry_comments = strip_tags($item["comments"]);