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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user