diff --git a/web/skins/classic/views/_stats_table.php b/web/skins/classic/views/_stats_table.php index 17e5385e8..bf4bd14a6 100644 --- a/web/skins/classic/views/_stats_table.php +++ b/web/skins/classic/views/_stats_table.php @@ -18,23 +18,22 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // -if ( !canView( 'Events' ) ) -{ - $view = "error"; - return; +if ( !canView('Events') ) { + $view = 'error'; + return; } -if ( !isset($row) ) $row=''; +if ( !isset($row) ) $row = ''; $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'; -$stats = dbFetchAll( $sql, NULL, array( $eid, $fid ) ); +$stats = dbFetchAll($sql, NULL, array($eid, $fid)); ?>
@@ -83,9 +80,9 @@ if ( $stat['Blobs'] > 1 ) { } } else { ?> - | ||||||||
- | ||||||||
+ |