summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-23 13:13:14 +0100
committerAndrew Dolgov <[email protected]>2007-08-23 13:13:14 +0100
commit30cf38dd0cacc694e80c9cd0fc922cac7da1441c (patch)
treec415a43d9cc58cc687bba17c399d46d68f0ddecf
parenta702e9312d8c7a9a5b4b58aa86f17077857e7c6c (diff)
simplepie: fix getting article author
-rw-r--r--functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 3a317a79b..4bfe95376 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"]);