summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-06-11 00:22:35 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-06-11 00:25:17 +0200
commit24226d69f906f0064909c820f8c66e2242206b8e (patch)
treec3e77d2343ce43307970e9bf21848516d38da3a6 /external
parent653b9f82ab2c397543c9f7da23ad79444ef41e45 (diff)
parse url and body parameters correctly for getAll items in the api
Diffstat (limited to 'external')
-rw-r--r--external/itemapi.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/external/itemapi.php b/external/itemapi.php
index 6b4aeb80c..adca0a3d8 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -55,7 +55,13 @@ class ItemAPI extends Controller {
$offset = (int) $this->params('offset', 0);
$type = (int) $this->params('type');
$id = (int) $this->params('id');
- $showAll = $this->params('getRead') === 'true';
+ $showAll = $this->params('getRead');
+
+ if($showAll === 'true' || $showAll === true) {
+ $showAll = true;
+ } else {
+ $showAll = false;
+ }
$items = $this->itemBusinessLayer->findAll(
$id,