Skip to content

Commit

Permalink
Merge branch 'MDL-79467-401' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_401_STABLE
  • Loading branch information
HuongNV13 committed Sep 27, 2023
2 parents 4f8a492 + 282523b commit a76f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pagelib.php
Expand Up @@ -1405,7 +1405,7 @@ public function set_title($title, bool $appendsitename = true) {
$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 {
Expand Down

0 comments on commit a76f40c

Please sign in to comment.