From e0fa4feeeb2b8f108e3813ab7c1ffc61e8dfb4ae Mon Sep 17 00:00:00 2001 From: David Herney Date: Wed, 15 May 2024 15:10:38 -0500 Subject: [PATCH] Fixed: Duplication of activitiy in section 0 #154 --- lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 094a13b..d5ac8d5 100644 --- a/lib.php +++ b/lib.php @@ -196,7 +196,9 @@ protected function __construct($format, $courseid) { if ($realsection === null || !$sections[$realsection]->uservisible) { if ($realsection) { - self::$formatmsgs[] = get_string('hidden_message', 'format_onetopic', $this->get_section_name($realsection)); + self::$formatmsgs[] = get_string('hidden_message', + 'format_onetopic', + $this->get_section_name($realsection)); } $valid = false;