mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Corrected pagination processor results.
This commit is contained in:
parent
eed53d44cd
commit
e75f3e2e83
1 changed files with 1 additions and 1 deletions
|
@ -42,6 +42,6 @@ class Paginate implements ProcessorsInterface {
|
||||||
|
|
||||||
$chunks = array_chunk($response, $length);
|
$chunks = array_chunk($response, $length);
|
||||||
|
|
||||||
$response = isset($chunks[$page]) ? $chunks[$page] : [];
|
$response = isset($chunks[$page - 1]) ? $chunks[$page - 1] : [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue