Skip to content

Commit

Permalink
MDL-55362 core: Fixed topic section default name empty h2 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolate-lightning committed Nov 16, 2016
1 parent b4d6669 commit 44002b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
$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,
Expand Down

0 comments on commit 44002b1

Please sign in to comment.