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