mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merged fix for hiding unneeded sections in course navmenu
This commit is contained in:
parent
7decbe4b12
commit
72b9f333b9
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user