Skip to content

Commit

Permalink
ishidden may not exist in the stdClass - #215.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 20, 2024
1 parent 4631679 commit f4100be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/output/courseformat/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f4100be

Please sign in to comment.