mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merge branch 'MDL-79467-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
a76f40c81b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user