diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 19:35:02 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 19:35:02 +0000 |
commit | fee0f149a01a6587345f76a4a51c5f9845309b62 (patch) | |
tree | 7f7be3493dd550f6c66433602a14bcdaee71474d /engine/lib/group.php | |
parent | c0e6998b01ddc9b87fd0869f3662cef3bca5b33b (diff) | |
download | elgg-fee0f149a01a6587345f76a4a51c5f9845309b62.tar.gz elgg-fee0f149a01a6587345f76a4a51c5f9845309b62.tar.bz2 |
Major access fix.
git-svn-id: https://code.elgg.org/elgg/trunk@1809 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index a8d2d570e..da6876be9 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -230,7 +230,8 @@ */ public function isMember($user = 0) {
- if (!($user instanceof ElggUser)) $user = $_SESSION['user']; + if (!($user instanceof ElggUser)) $user = $_SESSION['user'];
+ if (!($_SESSION['user'] instanceof ElggUser)) return false; return is_group_member($this->getGUID(), $user->getGUID()); } |