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

This commit is contained in:
Mathew May 2016-11-04 14:18:21 +13:00
parent b4d6669dd0
commit 44002b183c

View file

@ -147,7 +147,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,