remaining conversions
This commit is contained in:
parent
bfb52ab9aa
commit
957d6f123f
|
@ -73,7 +73,7 @@ $status = $running?$SLANG['Running']:$SLANG['Stopped'];
|
||||||
|
|
||||||
$group = NULL;
|
$group = NULL;
|
||||||
if ( ! empty($_COOKIE['zmGroup']) ) {
|
if ( ! empty($_COOKIE['zmGroup']) ) {
|
||||||
if ( $group = dbFetchOne( 'SELECT * FROM Groups WHERE Id = ?', NULL, ARRAY($_COOKIE['zmGroup']) ) )
|
if ( $group = dbFetchOne( 'SELECT * FROM Groups WHERE Id = ?', NULL, array($_COOKIE['zmGroup']) ) )
|
||||||
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ if ( !canView( 'Stream' ) )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "select C.*, M.* from Monitors as M left join Controls as C on (M.ControlId = C.Id ) where M.Id = '".dbEscape($_REQUEST['mid'])."'";
|
$sql = 'SELECT C.*, M.* FROM Monitors AS M LEFT JOIN Controls AS C ON (M.ControlId = C.Id ) WHERE M.Id = ?';
|
||||||
$monitor = dbFetchOne( $sql );
|
$monitor = dbFetchOne( $sql, NULL, array($_REQUEST['mid']) );
|
||||||
|
|
||||||
if ( isset($_REQUEST['showControls']) )
|
if ( isset($_REQUEST['showControls']) )
|
||||||
$showControls = validInt($_REQUEST['showControls']);
|
$showControls = validInt($_REQUEST['showControls']);
|
||||||
|
|
Loading…
Reference in New Issue