Return events when limit is > the # of events returned

pull/3630/head
Isaac Connor 2022-11-03 17:48:39 -04:00
parent f37786bb2a
commit d583c10fa6
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim
$filtered_rows = $unfiltered_rows;
} # end if search_filter->terms() > 1
if ($limit) {
if ($limit and $limit < count($filtered_rows)) {
ZM\Debug("Filtering rows due to limit " . count($filtered_rows)." offset: $offset limit: $limit");
$filtered_rows = array_slice($filtered_rows, $offset, $limit);
}