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:
parent
dae7327e7e
commit
c19b71975c
|
@ -840,6 +840,8 @@ if ( !empty($action) )
|
||||||
if ( !empty($_REQUEST['gid']) )
|
if ( !empty($_REQUEST['gid']) )
|
||||||
{
|
{
|
||||||
dbQuery( "delete from Groups where Id = '".dbEscape($_REQUEST['gid'])."'" );
|
dbQuery( "delete from Groups where Id = '".dbEscape($_REQUEST['gid'])."'" );
|
||||||
|
if ( isset($_COOKIE['zmGroup']) )
|
||||||
|
{
|
||||||
if ( $_REQUEST['gid'] == $_COOKIE['zmGroup'] )
|
if ( $_REQUEST['gid'] == $_COOKIE['zmGroup'] )
|
||||||
{
|
{
|
||||||
unset( $_COOKIE['zmGroup'] );
|
unset( $_COOKIE['zmGroup'] );
|
||||||
|
@ -849,6 +851,7 @@ if ( !empty($action) )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( ZM_USER_SELF_EDIT && $action == "user" )
|
if ( ZM_USER_SELF_EDIT && $action == "user" )
|
||||||
|
|
Loading…
Reference in New Issue