fixed pagination (final page)

This commit is contained in:
fbsanchez 2020-09-11 15:03:40 +02:00
parent a72002dc0e
commit 017333c46a
1 changed files with 3 additions and 1 deletions

View File

@ -326,7 +326,9 @@ class Group extends Entity
echo json_encode(
[
'results' => $return,
'pagination' => ['more' => count($return) < $count],
'pagination' => [
'more' => (count($return) + (($step - 2) * $limit)) < $count,
],
]
);
}