From: moodler Date: Thu, 17 Apr 2003 15:45:57 +0000 (+0000) Subject: Clear the variable, just in case X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c1d9daca3cd931cce1d7512f833b66e86989b89c;p=moodle.git Clear the variable, just in case --- 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 = "";