fix groups
This commit is contained in:
parent
967dda737c
commit
bfb52ab9aa
|
@ -71,8 +71,12 @@ $eventCounts = array(
|
|||
$running = daemonCheck();
|
||||
$status = $running?$SLANG['Running']:$SLANG['Stopped'];
|
||||
|
||||
if ( $group = dbFetchOne( 'select * from Groups where Id = ?', NULL, array(empty($_COOKIE['zmGroup'])?0:$_COOKIE['zmGroup'])) )
|
||||
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
||||
$group = NULL;
|
||||
if ( ! empty($_COOKIE['zmGroup']) ) {
|
||||
if ( $group = dbFetchOne( 'select * from Groups where Id = ?', NULL, array($_COOKIE['zmGroup'])) )
|
||||
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
||||
}
|
||||
}
|
||||
|
||||
noCacheHeaders();
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ $eventCounts = array(
|
|||
$running = daemonCheck();
|
||||
$status = $running?$SLANG['Running']:$SLANG['Stopped'];
|
||||
|
||||
$group = NULL;
|
||||
if ( ! empty($_COOKIE['zmGroup']) ) {
|
||||
if ( $group = dbFetchOne( 'SELECT * FROM Groups WHERE Id = ?', NULL, ARRAY($_COOKIE['zmGroup']) ) )
|
||||
$groupIds = array_flip(explode( ',', $group['MonitorIds'] ));
|
||||
|
|
Loading…
Reference in New Issue