define raw as an empty array so we don't generate js errors

This commit is contained in:
Isaac Connor 2022-01-07 16:21:34 -05:00
parent 5840602b6e
commit 79c45f50d5
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ $raw = isset($_REQUEST['raw']);
$data = array(); $data = array();
if ($raw) { if ($raw) {
$data['raw'] = array();
$sql = 'SELECT S.*,E.*,Z.Name AS ZoneName,Z.Units,Z.Area,M.Name AS MonitorName $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 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'; WHERE S.EventId = ? AND S.FrameId = ? ORDER BY S.ZoneId';