diff options
Diffstat (limited to 'controller/feedcontroller.php')
-rw-r--r-- | controller/feedcontroller.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index afc3de742..56c7d5af8 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -67,6 +67,9 @@ class FeedController extends Controller { try { $params['newestItemId'] = $this->itemBusinessLayer->getNewestItemId($this->userId); + + // An exception occurs if there is a newest item. If there is none, + // simply ignore it and do not add the newestItemId } catch (BusinessLayerException $ex) {} return new JSONResponse($params); @@ -136,6 +139,9 @@ class FeedController extends Controller { try { $params['newestItemId'] = $this->itemBusinessLayer->getNewestItemId($this->userId); + + // An exception occurs if there is a newest item. If there is none, + // simply ignore it and do not add the newestItemId } catch (BusinessLayerException $ex) {} return new JSONResponse($params); |