From ea3d91b46fc372d7239ae604ba7f90ee7d522997 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 14 Dec 2023 09:32:32 -0500 Subject: [PATCH] Actually fix problem by not putting () on an integer has-post_sql_conditions --- 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 e620af10b..1dc93b70e 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -226,7 +226,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim GROUP BY E.Id '.($sort?' ORDER BY '.$sort.' '.$order:''); - if ((int)($filter->limit()) and !$has_post_sql_conditions()) { + if ((int)($filter->limit()) and !$has_post_sql_conditions) { $sql .= ' LIMIT '.(int)($filter->limit()); }