code style and whitespace changes

pull/3038/head
Isaac Connor 2017-03-17 09:59:23 -04:00
parent b041e299fc
commit 8834109812
1 changed files with 5 additions and 9 deletions

View File

@ -94,23 +94,19 @@
// - Add auth tokens to zms call for those using authorization
//
if ( !canView( 'Events' ) )
{
if ( !canView( 'Events' ) ) {
$view = "error";
return;
}
require_once( 'includes/Monitor.php' );
if ( !empty($_REQUEST['group']) )
{
if ( !empty($_REQUEST['group']) ) {
$group = $_REQUEST['group'];
$row = dbFetchOne( 'select * from Groups where Id = ?', NULL, array($_REQUEST['group']) );
$monitorsSql = "select * from Monitors where Function != 'None' and find_in_set( Id, '".$row['MonitorIds']."' ) ";
}
else
{
$monitorsSql = "select * from Monitors ";
} else {
$monitorsSql = "select * from Monitors ";
$group = "";
}
@ -151,7 +147,7 @@ if ( !empty($user['MonitorIds']) )
$eventsSql .= $monFilterSql;
$monitorsSQL .= $monFilterSql;
$frameSql .= ' AND e.MonitorId IN ('.$user['MonitorIds'].')';
$frameSql .= ' AND E.MonitorId IN ('.$user['MonitorIds'].')';
}
// Parse input parameters -- note for future, validate/clean up better in case we don't get called from self.