Now hidden sections are hidden completely from student view if

"invisible sections" are configured in course settings.
Patch sent by Geoff Wilbert. Thanks!
See Bug 2185
(http://moodle.org/bugs/bug.php?op=show&bugid=2185)

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7 2004-11-16 17:30:45 +00:00
parent 3060f68e3d
commit 1757627af3

View file

@ -93,6 +93,9 @@
if (isset($sections[$i])) { // should always be true
$section = $sections[$i];
$showsection = (isteacher($course->id) or $section->visible or !$course->hiddensections);
if ($showsection) { // prevent hidden sections in user activity. Thanks to Geoff Wilbert!
if ($section->sequence) {
echo "<hr />";
@ -157,8 +160,7 @@
print_simple_box_end();
}
echo "</ul>";
}
}
}
}