summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/feedcontroller.php4
-rw-r--r--controller/itemcontroller.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php
index f5c060562..c542ea1d8 100644
--- a/controller/feedcontroller.php
+++ b/controller/feedcontroller.php
@@ -72,8 +72,8 @@ class FeedController extends Controller {
*/
public function active(){
$userId = $this->api->getUserId();
- $feedId = (int) $this->api->getUserValue($userId, 'lastViewedFeedId');
- $feedType = $this->api->getUserValue($userId, 'lastViewedFeedType');
+ $feedId = (int) $this->api->getUserValue('lastViewedFeedId');
+ $feedType = $this->api->getUserValue('lastViewedFeedType');
// cast from null to int is 0
if($feedType !== null){
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);