Whoops - parameters need to match category check and display of course.

This commit is contained in:
thepurpleblob 2007-07-26 11:04:28 +00:00
parent 9782846235
commit 301317e987

View 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' );
}