summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-07 17:13:42 +0100
committerAndrew Dolgov <[email protected]>2008-02-07 17:13:42 +0100
commita0c6eafbbc852a231cf6cc2673ba13c68d71d5b2 (patch)
treed1d3cd5b9565c2c20baa75b81afa82576ba98e4b /functions.php
parent60164936d976d83f372b7f9aa500ca51e2cd1323 (diff)
simplepie: fix entry_author parsing
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 47041088b..0b4a32a44 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"]);