#12543 fixed pagination metaconsole

This commit is contained in:
Daniel Cebrian 2023-11-29 11:04:48 +01:00
parent e7ad23c477
commit 28820f4471
1 changed files with 1 additions and 1 deletions

View File

@ -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,