diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-19 15:13:39 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-19 15:13:39 -0400 |
commit | 32bd7c839c8538b9f892c11893c140bb70677636 (patch) | |
tree | 466504d558d42353663354cf66960a5abee081e5 /lib/utils.php | |
parent | 608b3c7f8aefbb8c7f11d3c0dd548e5a04b4b0b0 (diff) |
now saves item's author in db
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 |