fixed pagination (final page)
This commit is contained in:
parent
a72002dc0e
commit
017333c46a
|
@ -326,7 +326,9 @@ class Group extends Entity
|
||||||
echo json_encode(
|
echo json_encode(
|
||||||
[
|
[
|
||||||
'results' => $return,
|
'results' => $return,
|
||||||
'pagination' => ['more' => count($return) < $count],
|
'pagination' => [
|
||||||
|
'more' => (count($return) + (($step - 2) * $limit)) < $count,
|
||||||
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue