Use net zm_setcookie
This commit is contained in:
parent
9395b7e47c
commit
3cd6fbdc12
|
@ -21,9 +21,9 @@
|
||||||
// Group view actions
|
// Group view actions
|
||||||
if ( ($action == 'setgroup') && canView('Groups')) {
|
if ( ($action == 'setgroup') && canView('Groups')) {
|
||||||
if ( !empty($_REQUEST['gid']) ) {
|
if ( !empty($_REQUEST['gid']) ) {
|
||||||
setcookie('zmGroup', validInt($_REQUEST['gid']), time()+3600*24*30*12*10);
|
zm_setcookie('zmGroup', validInt($_REQUEST['gid']));
|
||||||
} else {
|
} else {
|
||||||
setcookie('zmGroup', '', time()-3600*24*2);
|
zm_setcookie('zmGroup', '', time()-3600*24*2);
|
||||||
}
|
}
|
||||||
$refreshParent = true;
|
$refreshParent = true;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue