From bf93d491cefd19fe8ab339725d4c7ce627b6308b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 27 Mar 2013 18:21:30 +0100 Subject: correctly save last viewed feed --- controller/itemcontroller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controller/itemcontroller.php') diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php index 3fa422eab..23509fec2 100644 --- a/controller/itemcontroller.php +++ b/controller/itemcontroller.php @@ -55,8 +55,8 @@ class ItemController extends Controller { $type = (int) $this->params('type'); $id = (int) $this->params('id'); - $this->api->setUserValue($userId, 'lastViewedFeedId', $id); - $this->api->setUserValue($userId, 'lastViewedFeedType', $type); + $this->api->setUserValue('lastViewedFeedId', $id); + $this->api->setUserValue('lastViewedFeedType', $type); if($limit !== null){ $offset = (int) $this->params('offset', 0); -- cgit v1.2.3