Skip to content

Commit

Permalink
Consistent with M4.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Oct 14, 2023
1 parent e75d191 commit e57620f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/output/core_renderer_toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e57620f

Please sign in to comment.