diff options
author | Andrew Dolgov <[email protected]> | 2007-08-23 13:13:14 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-23 13:13:14 +0100 |
commit | 30cf38dd0cacc694e80c9cd0fc922cac7da1441c (patch) | |
tree | c415a43d9cc58cc687bba17c399d46d68f0ddecf /functions.php | |
parent | a702e9312d8c7a9a5b4b58aa86f17077857e7c6c (diff) |
simplepie: fix getting article author
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
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"]); |