]> git.mjollnir.org Git - moodle.git/commitdiff
Clear the variable, just in case
authormoodler <moodler>
Thu, 17 Apr 2003 15:45:57 +0000 (15:45 +0000)
committermoodler <moodler>
Thu, 17 Apr 2003 15:45:57 +0000 (15:45 +0000)
course/weeks.php

index b76b7b764ea6064b9b44795c4a82b892e80d456c..a0b14f097e09f0dfd123f31e32c7437748f61692 100644 (file)
         if (!empty($sections[$week])) {
             $thisweek = $sections[$week];
         } else {
+            unset($thisweek);
             $thisweek->course = $course->id;   // Create a new week structure
             $thisweek->section = $week;
             $thisweek->summary = "";