diff --git a/og.module b/og.module index dac0ab7..f8d0e84 100755 --- a/og.module +++ b/og.module @@ -1810,7 +1810,9 @@ function og_is_group($entity_type, $entity) { if (!field_info_instance($entity_type, OG_GROUP_FIELD, $bundle)) { return variable_get("og_is_group__{$entity_type}__{$bundle}", FALSE); } - return !empty($wrapper->{OG_GROUP_FIELD}) && $wrapper->{OG_GROUP_FIELD}->value(); + $items = field_get_items($entity_type, $entity, OG_GROUP_FIELD); + return $items && (count($items) > 0); + //return !empty($wrapper->{OG_GROUP_FIELD}) && $wrapper->{OG_GROUP_FIELD}->value(); }