From c1d9daca3cd931cce1d7512f833b66e86989b89c Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 17 Apr 2003 15:45:57 +0000 Subject: [PATCH] Clear the variable, just in case --- course/weeks.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/weeks.php b/course/weeks.php index b76b7b764e..a0b14f097e 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -150,6 +150,7 @@ if (!empty($sections[$week])) { $thisweek = $sections[$week]; } else { + unset($thisweek); $thisweek->course = $course->id; // Create a new week structure $thisweek->section = $week; $thisweek->summary = ""; -- 2.39.5