Corrected pagination processor results.

This commit is contained in:
Alex Tselegidis 2016-07-10 12:51:37 +02:00
parent eed53d44cd
commit e75f3e2e83
1 changed files with 1 additions and 1 deletions

View File

@ -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] : [];
}
}