diff --git a/classes/output/courseformat/content.php b/classes/output/courseformat/content.php index 60de7ff6..9cd6b98e 100644 --- a/classes/output/courseformat/content.php +++ b/classes/output/courseformat/content.php @@ -95,7 +95,7 @@ public function export_for_template(\renderer_base $output) { if (!empty($sections)) { // Is first entry section 0? if ($sections[0]->num === 0) { - if ((!$singlesectionid) && ($sectionzeronotingrid)) { + if ((!$singlesection) && ($sectionzeronotingrid)) { // Most formats uses section 0 as a separate section so we remove from the list. $initialsection = array_shift($sections); $data->initialsection = $initialsection;