diff --git a/index.php b/index.php index b500007b4f2..427e8f74d96 100644 --- a/index.php +++ b/index.php @@ -145,7 +145,7 @@ if (!empty($CFG->customfrontpageinclude)) { $context = context_course::instance(SITEID); // If the section name is set we show it. - if (!is_null($section->name)) { + if (trim($section->name) !== '') { echo $OUTPUT->heading( format_string($section->name, true, array('context' => $context)), 2,