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()); }