diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-21 13:03:00 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-12-21 13:03:00 +0000 |
commit | 99e35796e76fee010b7288e2c02284b570eece37 (patch) | |
tree | 6b3cd8652582e61cf114a930908eac3ab7e1eb28 /engine | |
parent | 7fb204e28b61908eef17bd0a731f01e774f38d36 (diff) | |
download | elgg-99e35796e76fee010b7288e2c02284b570eece37.tar.gz elgg-99e35796e76fee010b7288e2c02284b570eece37.tar.bz2 |
fixed #1087 - is_group_member() now returns boolean values only
git-svn-id: http://code.elgg.org/elgg/trunk@3778 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/group.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index bbbde0f55..589e664d1 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -755,7 +755,12 @@ function get_group_members($group_guid, $limit = 10, $offset = 0, $site_guid = 0 * @return bool */ function is_group_member($group_guid, $user_guid) { - return check_entity_relationship($user_guid, 'member', $group_guid); + $object = check_entity_relationship($user_guid, 'member', $group_guid); + if ($object) { + return true; + } else { + return false; + } } /** |