From 3acc5294941cc8736ede84cad2901a43d0720416 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:30:41 +0100 Subject: [PATCH] Ops. --- classes/output/courseformat/content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;