From 79c45f50d5a3b5d9faf30f0bdc761407ff782b5c Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 7 Jan 2022 16:21:34 -0500 Subject: [PATCH] define raw as an empty array so we don't generate js errors --- web/ajax/stats.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/ajax/stats.php b/web/ajax/stats.php index 9226814b4..98b07b01e 100644 --- a/web/ajax/stats.php +++ b/web/ajax/stats.php @@ -9,6 +9,7 @@ $raw = isset($_REQUEST['raw']); $data = array(); if ($raw) { + $data['raw'] = array(); $sql = 'SELECT S.*,E.*,Z.Name AS ZoneName,Z.Units,Z.Area,M.Name AS MonitorName FROM Stats AS S LEFT JOIN Events AS E ON S.EventId = E.Id LEFT JOIN Zones AS Z ON S.ZoneId = Z.Id LEFT JOIN Monitors AS M ON E.MonitorId = M.Id WHERE S.EventId = ? AND S.FrameId = ? ORDER BY S.ZoneId';