From 42d890455ae7b6a61a566d174f9980b8faee782f Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:04:16 +0000 Subject: Replaced $_SESSION['id'] and $_SESSION['guid'] with get_loggedin_userid() git-svn-id: http://code.elgg.org/elgg/trunk@7143 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/leave.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/groups/actions') 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 -- cgit v1.2.3