MDL-55362 core: Fixed topic section default name empty h2 tag

This commit is contained in:
Mathew May
2016-11-16 14:15:31 +13:00
parent 55fb326d70
commit ef6cdec4e5
+1 -1
View File
@@ -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,