Excess sections that are not shown (because the course numsections

are set to less) are now also not shown on the navmenu.
This commit is contained in:
moodler
2004-11-21 06:27:01 +00:00
parent d32ae936e4
commit 8a07a15029
+4
View File
@@ -2028,6 +2028,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];