mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
fixed error in import.php category object fetching logic
This commit is contained in:
parent
561fe61df3
commit
f86c2c84b1
@ -57,7 +57,7 @@
|
||||
|
||||
|
||||
|
||||
if ($category = get_record("question_categories", "id", $pagevars['cat'])) {
|
||||
if (!$category = get_record("question_categories", "id", $pagevars['cat'])) {
|
||||
// if no valid category was given, use the default category
|
||||
print_error('nocategory','quiz');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user