aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/leave.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php
index 58f2655ad..220a106cf 100644
--- a/mod/groups/actions/leave.php
+++ b/mod/groups/actions/leave.php
@@ -24,7 +24,7 @@
if (($user instanceof ElggUser) && ($group instanceof ElggGroup))
{
- if ($group->getOwner() != $_SESSION['guid']) {
+ if ($group->getOwner() != get_loggedin_userid()) {
if ($group->leave($user))
system_message(elgg_echo("groups:left"));
else