aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php7
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;
+ }
}
/**