Skip to content

Commit

Permalink
ishidden may not exist in the stdClass - gjbarnard#215.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 19, 2024
1 parent 0036a5a commit 1502065
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 @@ -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;
}
}
Expand Down

0 comments on commit 1502065

Please sign in to comment.