fixed pagination (final page)

This commit is contained in:
fbsanchez 2020-09-11 14:56:32 +02:00
parent 426286b8b5
commit a72002dc0e

View File

@ -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);
} }