diff options
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index 51afd8e41..0a218b6f1 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -230,8 +230,8 @@ */ public function isMember($user = 0) {
- if (!($user instanceof ElggUser)) $user = $_SESSION['user'];
- if (!($_SESSION['user'] instanceof ElggUser)) return false; + if (!($user instanceof ElggUser)) $user = get_loggedin_user();
+ if (!($user instanceof ElggUser)) return false; return is_group_member($this->getGUID(), $user->getGUID()); } |