diff --git a/classes/output/courseformat/content.php b/classes/output/courseformat/content.php index a235d118..f7411ece 100644 --- a/classes/output/courseformat/content.php +++ b/classes/output/courseformat/content.php @@ -190,7 +190,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; } }