diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-04-21 07:20:31 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-04-21 07:20:31 +0300 |
commit | 74800fb2ca631b8327a5dcd0048409c020369760 (patch) | |
tree | 66f6e40dd39f904cb0b77782d9e45d6677e0b090 /core/API/ResponseBuilder.php | |
parent | 1cfdd56b16ced85c96eadb60d71b9156b4ae0a65 (diff) |
we should never preserve keys, otherwise if the firstKey index is "2" we would return an object in json renderer instead of an array
Diffstat (limited to 'core/API/ResponseBuilder.php')
-rw-r--r-- | core/API/ResponseBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/API/ResponseBuilder.php b/core/API/ResponseBuilder.php index 9688aff83b..f12f1f494b 100644 --- a/core/API/ResponseBuilder.php +++ b/core/API/ResponseBuilder.php @@ -202,7 +202,7 @@ class ResponseBuilder $offset = Common::getRequestVar('filter_offset', '0', 'integer', $this->request); if ($this->shouldApplyLimitOnArray($limit, $offset)) { - $array = array_slice($array, $offset, $limit, $firstKey !== 0); + $array = array_slice($array, $offset, $limit, $preserveKeys = false); } } |