diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php
index 88a5917b93e..d0794185d5a 100644
--- a/course/format/weeks/format.php
+++ b/course/format/weeks/format.php
@@ -199,7 +199,7 @@
if ($displaysection == $section) {
echo ''.
- '
';
+ '
';
} else {
$strshowonlyweek = get_string("showonlyweek", "", $section);
echo ''.