mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-43852 Filters Fixed naked-OR conditions.
This commit is contained in:
parent
ed0a48b2c1
commit
edf55404ff
2 changed files with 2 additions and 2 deletions
|
@ -585,7 +585,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
|||
$section = 1;
|
||||
while ($section <= $course->numsections) {
|
||||
$thissection = $modinfo->get_section_info($section);
|
||||
$showsection = $thissection->uservisible or !$course->hiddensections;
|
||||
$showsection = ($thissection->uservisible or !$course->hiddensections);
|
||||
if (($showsection) && ($section != $displaysection) && ($url = course_get_url($course, $section))) {
|
||||
$sectionmenu[$url->out(false)] = get_section_name($course, $section);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue