Skip to content

Commit 9c209b1

Browse files
committed
Only load the sections on the page WIP 3
1 parent a49f655 commit 9c209b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/output/courseformat/content/section.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected function add_format_data(\stdClass &$data, array $haspartials, \render
163163
$sectionextra = $this->fmtsectionextra;
164164
$format = $this->format;
165165

166-
if (empty($section->component) && $sectionextra->levelsan < 2) {
166+
if (empty($section->component) && ($sectionextra->levelsan < 2)) {
167167
$data->collapsemenu = true;
168168
} else {
169169
unset($data->collapsemenu);

0 commit comments

Comments
 (0)