mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
#12543 fixed pagination metaconsole
This commit is contained in:
parent
e7ad23c477
commit
28820f4471
@ -1907,7 +1907,7 @@ function events_get_all(
|
||||
// -1 For pagination 'All'.
|
||||
((int) $limit === -1)
|
||||
? $end = count($data)
|
||||
: $end = ((int) $offset !== 0) ? ($offset + $limit) : $limit;
|
||||
: $end = $limit;
|
||||
$finally = array_slice($data, $offset, $end, true);
|
||||
$return = [
|
||||
'buffers' => $buffers,
|
||||
|
Loading…
x
Reference in New Issue
Block a user