diff --git a/course/format/topics/format.php b/course/format/topics/format.php
index 8d2ef29eb8f2a..bd667041cb018 100644
--- a/course/format/topics/format.php
+++ b/course/format/topics/format.php
@@ -190,9 +190,9 @@
if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
if ($course->marker == $section) { // Show the "light globe" on/off
- echo ''.'
';
+ echo ''.'
';
} else {
- echo ''.'
';
+ echo ''.'
';
}
if ($thissection->visible) { // Show the hide/show eye