diff --git a/classes/output/core_renderer_toolbox.php b/classes/output/core_renderer_toolbox.php index e5bba58..3a254c6 100644 --- a/classes/output/core_renderer_toolbox.php +++ b/classes/output/core_renderer_toolbox.php @@ -1089,7 +1089,8 @@ public function navbar() { $removemycourses = false; } else if ($CFG->defaulthomepage == HOMEPAGE_USER) { global $USER; - if ((!empty($USER->preference['user_home_page_preference'])) && + if ( + (!empty($USER->preference['user_home_page_preference'])) && ($USER->preference['user_home_page_preference'] == HOMEPAGE_MYCOURSES)) { $removemycourses = false; }