From e75f3e2e8315b86c9b579976009d4f58dc69b898 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 10 Jul 2016 12:51:37 +0200 Subject: [PATCH] Corrected pagination processor results. --- src/engine/Api/V1/Processors/Paginate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Api/V1/Processors/Paginate.php b/src/engine/Api/V1/Processors/Paginate.php index b8eadcae..da56a010 100644 --- a/src/engine/Api/V1/Processors/Paginate.php +++ b/src/engine/Api/V1/Processors/Paginate.php @@ -42,6 +42,6 @@ class Paginate implements ProcessorsInterface { $chunks = array_chunk($response, $length); - $response = isset($chunks[$page]) ? $chunks[$page] : []; + $response = isset($chunks[$page - 1]) ? $chunks[$page - 1] : []; } }