From 30cf38dd0cacc694e80c9cd0fc922cac7da1441c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2007 13:13:14 +0100 Subject: [PATCH] simplepie: fix getting article author --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"]); -- 2.39.5