fixed pagination (final page)

This commit is contained in:
fbsanchez 2020-09-11 14:56:32 +02:00
parent 426286b8b5
commit a72002dc0e
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class Group extends Entity
// Pagination over effective groups retrieved.
// Calculation is faster than transference.
$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) {
$return = array_splice($return, $offset, $limit);
}