diff options
Diffstat (limited to 'utility')
-rw-r--r-- | utility/feedfetcher.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php index c54dabf05..ab1b92a4d 100644 --- a/utility/feedfetcher.php +++ b/utility/feedfetcher.php @@ -120,7 +120,11 @@ class FeedFetcher implements IFeedFetcher { $author = $simplePieItem->get_author(); if ($author !== null) { - $item->setAuthor(html_entity_decode($author->get_name())); + if ($author->get_name()) { + $item->setAuthor(html_entity_decode($author->get_name())); + } else { + $item->setAuthor(html_entity_decode($author->get_email())); + } } // TODO: make it work for video files also @@ -167,4 +171,4 @@ class FeedFetcher implements IFeedFetcher { return $feed; } -}
\ No newline at end of file +} |