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