diff options
Diffstat (limited to 'utility/feedfetcher.php')
-rw-r--r-- | utility/feedfetcher.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php index ab1b92a4d..e97373836 100644 --- a/utility/feedfetcher.php +++ b/utility/feedfetcher.php @@ -120,8 +120,9 @@ class FeedFetcher implements IFeedFetcher { $author = $simplePieItem->get_author(); if ($author !== null) { - if ($author->get_name()) { - $item->setAuthor(html_entity_decode($author->get_name())); + $name = html_entity_decode($author->get_name()); + if ($name) { + $item->setAuthor($name); } else { $item->setAuthor(html_entity_decode($author->get_email())); } |