diff --git a/index.php b/index.php index 01efd37d10..02786353ce 100755 --- a/index.php +++ b/index.php @@ -114,9 +114,8 @@ if (!api_is_anonymous()) { } } -$hot_courses = null; -$announcements_block = null; - +$hot_courses = ''; +$announcements_block = ''; // Display the Site Use Cookie Warning Validation $useCookieValidation = api_get_setting('cookie_warning'); diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index e52dca7d75..67b4ee4b07 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -98,7 +98,7 @@ class IndexManager */ public function return_announcements($show_slide = true) { - //// Display System announcements + // Display System announcements $hideAnnouncements = api_get_setting('hide_global_announcements_when_not_connected'); $currentUserId = api_get_user_id(); if ($hideAnnouncements == 'true' && empty($currentUserId)) { @@ -214,12 +214,14 @@ class IndexManager if ($show_menu) { $html .= '