aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:04:16 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:04:16 +0000
commit42d890455ae7b6a61a566d174f9980b8faee782f (patch)
treef5da4e9c5cb9e2656dbbde06ba35dd9dc4d333d4 /mod/groups
parentba5681722bbb3df247cda8eb3f64c7e040e5bf00 (diff)
downloadelgg-42d890455ae7b6a61a566d174f9980b8faee782f.tar.gz
elgg-42d890455ae7b6a61a566d174f9980b8faee782f.tar.bz2
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
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