From e353523073e3882ec1abdc28004560b4b6f507b5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 12 Sep 2023 09:07:46 -0400 Subject: [PATCH] Fix int()=>(int) causing events to not load --- 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 1ef7d8d66..bbae18e73 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -204,7 +204,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim CASE WHEN E.EndDateTime IS NULL THEN (SELECT UNIX_TIMESTAMP(NOW())) ELSE UNIX_TIMESTAMP(EndDateTime) END AS EndTimeSecs, M.Name AS Monitor'; $sql = 'SELECT ' .$col_str. ' FROM `Events` AS E INNER JOIN Monitors AS M ON E.MonitorId = M.Id'.$where.($sort?' ORDER BY '.$sort.' '.$order:''); - if (int($filter->limit()) and !count($filter->post_sql_conditions())) { + if ((int)$filter->limit() and !count($filter->post_sql_conditions())) { $sql .= ' LIMIT '.$filter->limit(); }