Fixed minor bug after creating default category.
authormoodler <moodler>
Sat, 26 Oct 2002 05:17:53 +0000 (05:17 +0000)
committermoodler <moodler>
Sat, 26 Oct 2002 05:17:53 +0000 (05:17 +0000)
mod/quiz/lib.php

index e788b20..8156b28 100644 (file)
@@ -478,6 +478,7 @@ function quiz_print_category_form($course, $current) {
             notify("Error creating a default category!");
             return false;
         }
             notify("Error creating a default category!");
             return false;
         }
+        $categories[$category->id] = $category;
     }
     foreach ($categories as $key => $category) {
        if ($category->publish) {
     }
     foreach ($categories as $key => $category) {
        if ($category->publish) {