diff options
Diffstat (limited to 'mod/groups/actions/leave.php')
-rw-r--r-- | mod/groups/actions/leave.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php index 721bff2c8..58f2655ad 100644 --- a/mod/groups/actions/leave.php +++ b/mod/groups/actions/leave.php @@ -14,7 +14,7 @@ $group_guid = get_input('group_guid'); $user = NULL; - if (!$user_guid) $user = $_SESSION['user']; + if (!$user_guid) $user = get_loggedin_user(); else $user = get_entity($user_guid); |