From: moodler Date: Thu, 12 Feb 2004 03:48:13 +0000 (+0000) Subject: FIxed (old?) bug that sometimes prevented new categories X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=00d727e387dccfffce1a74266ed750500a542d46;p=moodle.git FIxed (old?) bug that sometimes prevented new categories --- diff --git a/mod/quiz/category.php b/mod/quiz/category.php index 6a4c8d5a07..a9300f1d6d 100644 --- a/mod/quiz/category.php +++ b/mod/quiz/category.php @@ -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'];