summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
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,