Actually fix problem by not putting () on an integer has-post_sql_conditions

This commit is contained in:
Isaac Connor
2023-12-14 09:32:32 -05:00
parent b618030b7a
commit ea3d91b46f

View File

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