From d583c10fa6b7a0b6fb7aca9fe40329c5790e8ada Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 3 Nov 2022 17:48:39 -0400 Subject: [PATCH] Return events when limit is > the # of events returned --- web/ajax/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/events.php b/web/ajax/events.php index 1bb4581e7..f609832f1 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -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); }