diff --git a/course/format/renderer.php b/course/format/renderer.php index e8d1418b42c..33f477b5f68 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -316,6 +316,11 @@ abstract class format_section_renderer_base extends plugin_renderer_base { foreach ($modsequence as $cmid) { $thismod = $mods[$cmid]; + if ($thismod->modname == 'label') { + // Labels are special (not interesting for students)! + continue; + } + if ($thismod->uservisible) { if (isset($sectionmods[$thismod->modname])) { $sectionmods[$thismod->modname]['count']++;