Commit cc727272 authored by sylvieg's avatar sylvieg

[FIX] wrong parameter name

parent ed32bea1
...@@ -95,16 +95,16 @@ function wikiplugin_subscribegroups($data, $params) { ...@@ -95,16 +95,16 @@ function wikiplugin_subscribegroups($data, $params) {
if (!empty($_REQUEST['unassign']) && isset($userGroups[$group])) { if (!empty($_REQUEST['unassign']) && isset($userGroups[$group])) {
$userlib->remove_user_from_group($user, $group); $userlib->remove_user_from_group($user, $group);
} }
$userGroups = $userlib->get_user_groups_inclusion($user);
if (!empty($_REQUEST['default']) && isset($userGroups[$_REQUEST['default']])) { if (!empty($_REQUEST['default']) && isset($userGroups[$_REQUEST['default']])) {
$userlib->set_default_group($user, $_REQUEST['default']); $userlib->set_default_group($user, $_REQUEST['default']);
global $group; global $group;
$group = $_REQUEST['default']; $group = $_REQUEST['default'];
if (isset($urldefault)) { if (isset($defaulturl)) {
header("Location: $urldefault"); header("Location: $defaulturl");
die; die;
} }
} }
$userGroups = $userlib->get_user_groups_inclusion($user);
if (isset($userGroups['Anonymous'])) { if (isset($userGroups['Anonymous'])) {
unset($userGroups['Anonymous']); unset($userGroups['Anonymous']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment