MDL-79761 navigation: fix default setting during web installation

This commit is contained in:
Marina Glancy
2023-12-04 13:06:06 +00:00
parent a418e9e53a
commit d79ad5de6a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10668,7 +10668,7 @@ function get_home_page() {
function get_default_home_page(): int {
global $CFG;
return !empty($CFG->enabledashboard) ? HOMEPAGE_MY : HOMEPAGE_MYCOURSES;
return (!isset($CFG->enabledashboard) || $CFG->enabledashboard) ? HOMEPAGE_MY : HOMEPAGE_MYCOURSES;
}
/**