mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-07 22:23:07 -04:00
Fixed issue with deleteing current monitor grouyp - http://www.zoneminder.com/forums/viewtopic.php?t=15278
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3284 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
@@ -840,11 +840,14 @@ if ( !empty($action) )
|
||||
if ( !empty($_REQUEST['gid']) )
|
||||
{
|
||||
dbQuery( "delete from Groups where Id = '".dbEscape($_REQUEST['gid'])."'" );
|
||||
if ( $_REQUEST['gid'] == $_COOKIE['zmGroup'] )
|
||||
if ( isset($_COOKIE['zmGroup']) )
|
||||
{
|
||||
unset( $_COOKIE['zmGroup'] );
|
||||
setcookie( "zmGroup", "", time()-3600*24*2 );
|
||||
$refreshParent = true;
|
||||
if ( $_REQUEST['gid'] == $_COOKIE['zmGroup'] )
|
||||
{
|
||||
unset( $_COOKIE['zmGroup'] );
|
||||
setcookie( "zmGroup", "", time()-3600*24*2 );
|
||||
$refreshParent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user