diff --git a/school.d/default.inc b/school.d/default.inc
--- a/school.d/default.inc
+++ b/school.d/default.inc
@@ -82,8 +82,9 @@ function default_registration_html(Page 
     . '  
' . PHP_EOL
     . '  ' . PHP_EOL;
   foreach ($courses as $course)
-    foreach ($course as $section)
-      $html .= '    - ' . htmlentities($section->getSynonym()) . '
 ' . PHP_EOL;
+    foreach ($course as $course_slot)
+      foreach ($course_slot as $section)
+        $html .= '    - ' . htmlentities($section->getSynonym()) . '
 ' . PHP_EOL;
   $html .= '  
' . PHP_EOL;
   return $html;
 }