]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed (old?) bug that sometimes prevented new categories
authormoodler <moodler>
Thu, 12 Feb 2004 03:48:13 +0000 (03:48 +0000)
committermoodler <moodler>
Thu, 12 Feb 2004 03:48:13 +0000 (03:48 +0000)
mod/quiz/category.php

index 6a4c8d5a07d7371b98ec8e0c8f1ce3be9d5a9f29..a9300f1d6dc0406c46ea2367c5de669f8faeb8c7 100644 (file)
@@ -96,6 +96,7 @@
 
         // Peel out all the data from variable names.
         foreach ($form as $key => $val) {
+            $cat = NULL;
             if ($key == "new" and $val != "") {
                 $cat->name = $val;
                 $cat->info = $form['newinfo'];