From d257b53e827b43cb92ccfa6f58bba2c654dfe3c3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 8 Jul 2018 15:08:49 -0400 Subject: [PATCH] Add missing ) to frame sql when no min/max time specified --- web/skins/classic/views/montagereview.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/skins/classic/views/montagereview.php b/web/skins/classic/views/montagereview.php index 20d025e19..a3dad631b 100644 --- a/web/skins/classic/views/montagereview.php +++ b/web/skins/classic/views/montagereview.php @@ -198,6 +198,8 @@ if ( isset($minTime) && isset($maxTime) ) { $eventsSql .= " AND EndTime > '" . $minTime . "' AND StartTime < '" . $maxTime . "'"; $frameSql .= " AND EndTime > '" . $minTime . "' AND StartTime < '" . $maxTime . "'"; $frameSql .= ") AND TimeStamp > '" . $minTime . "' AND TimeStamp < '" . $maxTime . "'"; +} else { + $frameSql .= ')'; } #$frameSql .= ' GROUP BY E.Id, E.MonitorId, F.TimeStamp, F.Delta ORDER BY E.MonitorId, F.TimeStamp ASC'; #$frameSql .= ' GROUP BY E.Id, E.MonitorId, F.TimeStamp, F.Delta ORDER BY E.MonitorId, F.TimeStamp ASC';