diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 10:14:35 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-22 10:14:35 +0200 |
commit | 5f71477e1a8ac9704e5c580a5bb5d8d820a43a19 (patch) | |
tree | 256d6f2c37c861e11e21c4244bdad6d15ae77e3f /utility | |
parent | 9733fead9df17f510978762829bc70af0ae433c1 (diff) |
added unittest for author mail
Diffstat (limited to 'utility')
-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())); } |