Browse Source

Fix lasting issue with announcements visibility - refs BT#7008

Yannick Warnier 11 years ago
parent
commit
653ed39a7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.php

+ 2 - 2
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);