From: Andrew Dolgov Date: Thu, 23 Aug 2007 12:13:14 +0000 (+0100) Subject: simplepie: fix getting article author X-Git-Tag: 1.2.15~89 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=30cf38dd0cacc694e80c9cd0fc922cac7da1441c;p=tt-rss.git simplepie: fix getting article author --- diff --git a/functions.php b/functions.php index 3a317a79..4bfe9537 100644 --- a/functions.php +++ b/functions.php @@ -684,7 +684,9 @@ if (ENABLE_SIMPLEPIE) { $entry_comments = strip_tags($item->data["comments"]); - $entry_author = $item->get_author(); + if ($item->get_author()) { + $entry_author = $item->get_author()->get_name(); + } } else { $entry_comments = strip_tags($item["comments"]);