diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 18:31:03 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 18:31:03 +0200 |
commit | 66f2c55cc00cd62e40fc95fb2f864e45fef70c2f (patch) | |
tree | 23d69ad81f0141151d9df15fb485c144a772d3cd /lib/utils.php | |
parent | 04ee5ea0dd96dda87c62da13c8f160044ecc5348 (diff) | |
parent | c193d2447d1e4e6407088d52f623fc5e68ad6161 (diff) |
merged
Diffstat (limited to 'lib/utils.php')
-rw-r--r-- | lib/utils.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils.php b/lib/utils.php index 5def91e4a..7ad9f1929 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -46,7 +46,9 @@ class Utils { $itemBody = $spitem->get_content(); $itemAuthor = $spitem->get_author(); $item = new Item($itemUrl, $itemTitle, $itemGUID, $itemBody); - $item->setAuthor($itemAuthor->get_name()); + if ($itemAuthor !== null) { + $item->setAuthor($itemAuthor->get_name()); + } $items[] = $item; } } |