diff --git a/index.php b/index.php index 88c3eae65b..465861182b 100644 --- a/index.php +++ b/index.php @@ -179,8 +179,8 @@ if (!isset($_REQUEST['include'])) { global $_configuration; //hiding global announcements when user not connected -if ($_configuration['hide_global_announcements_when_not_connected'] && isset($_user['user_id'])) { - $controller->tpl->assign('announcements_block', $announcements_block); +if (empty($_configuration['hide_global_announcements_when_not_connected']) || !empty($_user['user_id'])) { + $controller->tpl->assign('announcements_block', $announcements_block); } $controller->tpl->assign('home_page_block', $controller->return_home_page()); $controller->tpl->assign('hot_courses', $hot_courses);