diff --git a/main/group/group_space.php b/main/group/group_space.php
index f084270bd3..1b66386044 100644
--- a/main/group/group_space.php
+++ b/main/group/group_space.php
@@ -1,4 +1,4 @@
- $value) {
- if ($value['forum_group_public_private'] == 'public' || ($user_subscribe_to_current_group && $value['forum_group_public_private'] == 'private') || $user_is_tutor || api_is_allowed_to_edit(false,true)) {
+ if ($value['forum_group_public_private'] == 'public' || (!empty($user_subscribe_to_current_group) && $value['forum_group_public_private'] == 'private') || !empty($user_is_tutor) || api_is_allowed_to_edit(false,true)) {
$tools.= Display::return_icon('forum.gif', get_lang("GroupForum")) . ' '.$value['forum_title'].'
';
}
}