mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fixed pagination (final page)
This commit is contained in:
parent
426286b8b5
commit
a72002dc0e
@ -317,7 +317,7 @@ class Group extends Entity
|
|||||||
// Pagination over effective groups retrieved.
|
// Pagination over effective groups retrieved.
|
||||||
// Calculation is faster than transference.
|
// Calculation is faster than transference.
|
||||||
$count = count($return);
|
$count = count($return);
|
||||||
if (is_numeric($offset) === true && $offset >= 0 && $offset < $count) {
|
if (is_numeric($offset) === true && $offset >= 0) {
|
||||||
if (is_numeric($limit) === true && $limit > 0) {
|
if (is_numeric($limit) === true && $limit > 0) {
|
||||||
$return = array_splice($return, $offset, $limit);
|
$return = array_splice($return, $offset, $limit);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user