diff --git a/classes/output/courseformat/content.php b/classes/output/courseformat/content.php index 9c7ce269..ddc55ba1 100644 --- a/classes/output/courseformat/content.php +++ b/classes/output/courseformat/content.php @@ -188,7 +188,7 @@ public function export_for_template(\renderer_base $output) { $sectionvisiblity = []; foreach ($sections as $section) { $sectionvisiblity[$section->id] = new stdClass; - $sectionvisiblity[$section->id]->ishidden = $section->ishidden; + $sectionvisiblity[$section->id]->ishidden = (!empty($section->ishidden)); $sectionvisiblity[$section->id]->visibility = $section->visibility; } }