summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 22:46:54 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-02 22:46:54 +0200
commitb8a2a027440b753354e4715d26cfcc87fa5c8f4e (patch)
tree2fce939e89585f3758868adead7daa6d8adfd336 /external/itemapi.php
parenta8a1a4addb0b5977acfe4a31e6c6b8af679728e2 (diff)
implemented last api method, fix #105
Diffstat (limited to 'external/itemapi.php')
-rw-r--r--external/itemapi.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/itemapi.php b/external/itemapi.php
index 99dc8ddef..9699b4371 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -102,7 +102,7 @@ class ItemAPI extends Controller {
private function setRead($isRead) {
$userId = $this->api->getUserId();
- $itemId = $this->params('itemId');
+ $itemId = (int) $this->params('itemId');
try {
$this->itemBusinessLayer->read($itemId, $isRead, $userId);
return new NewsAPIResult();
@@ -115,7 +115,7 @@ class ItemAPI extends Controller {
private function setStarred($isStarred) {
$userId = $this->api->getUserId();
- $feedId = $this->params('feedId');
+ $feedId = (int) $this->params('feedId');
$guidHash = $this->params('guidHash');
try {
$this->itemBusinessLayer->star($feedId, $guidHash, $isStarred, $userId);