diff options
Diffstat (limited to 'lib/utils.php')
-rw-r--r-- | lib/utils.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils.php b/lib/utils.php index b3ff3db0c..1632849b6 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -66,9 +66,9 @@ class Utils { $itemBody = $spitem->get_content(); $item = new Item($itemUrl, $itemTitle, $itemGUID, $itemBody); - $itemAuthor = $spitem->get_author(); - if ($itemAuthor !== null) { - $item->setAuthor($itemAuthor->get_name()); + $spAuthor = $spitem->get_author(); + if ($spAuthor !== null) { + $item->setAuthor($spAuthor->get_name()); } //date in Item is stored in UNIX timestamp format |