diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-15 12:27:32 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-15 12:27:32 -0400 |
commit | c193d2447d1e4e6407088d52f623fc5e68ad6161 (patch) | |
tree | 9eade547fe378afbe42c912b1e2c5060a53120b1 /lib/utils.php | |
parent | 04497e9e68516537244c359a06f29aa6b2afce08 (diff) |
small fixes on model
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; } } |