]> git.mjollnir.org Git - moodle.git/commitdiff
Whoops - parameters need to match category check and display of course.
authorthepurpleblob <thepurpleblob>
Thu, 26 Jul 2007 11:04:28 +0000 (11:04 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 26 Jul 2007 11:04:28 +0000 (11:04 +0000)
question/import.php

index 782f0e640387120aee1c1f54d097d8e42f94f149..de65b3a73561393d3124cd5828aea2aaaa821349 100644 (file)
@@ -63,7 +63,7 @@
     }
 
     // check category is valid (against THIS courseid, before we change it)
-    $validcats = question_category_options( $courseid, true, true );
+    $validcats = question_category_options( $courseid, false, true );
     if (!array_key_exists( $categoryid, $validcats )) {
         print_error( 'invalidcategory', 'quiz' );
     }