Merged fix for hiding unneeded sections in course navmenu

This commit is contained in:
moodler 2004-11-21 06:28:17 +00:00
parent 7decbe4b12
commit 72b9f333b9

View File

@ -2689,6 +2689,10 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
continue;
}
if ($mod->section > $course->numsections) { /// Don't show excess hidden sections
break;
}
if ($mod->section > 0 and $section <> $mod->section) {
$thissection = $sections[$mod->section];