Use net zm_setcookie

This commit is contained in:
Isaac Connor 2022-01-20 09:48:02 -05:00
parent 9395b7e47c
commit 3cd6fbdc12
1 changed files with 2 additions and 2 deletions

View File

@ -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;