Merge branch 'MDL-79467-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Huong Nguyen 2023-09-27 10:45:07 +07:00
commit a76f40c81b
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -1405,7 +1405,7 @@ class moodle_page {
$sitenamedisplay = $CFG->sitenameintitle;
}
$site = get_site();
if (empty(trim($site->{$sitenamedisplay}))) {
if (empty(trim($site->{$sitenamedisplay} ?? ''))) {
// If for some reason the site name is not yet set, fall back to 'Moodle'.
$title .= self::TITLE_SEPARATOR . 'Moodle';
} else {