From ef6cdec4e57f67a5458ba540a27711ef9bae4516 Mon Sep 17 00:00:00 2001 From: Mathew May Date: Fri, 4 Nov 2016 14:18:21 +1300 Subject: [PATCH] MDL-55362 core: Fixed topic section default name empty h2 tag --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,