mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Whoops - parameters need to match category check and display of course.
This commit is contained in:
parent
9782846235
commit
301317e987
@ -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' );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user