Small bugfix to allow question categories to be changed

This commit is contained in:
moodler
2003-07-07 15:08:03 +00:00
parent 0485fe6551
commit 5da9e4a5ac
+3 -1
View File
@@ -14,7 +14,9 @@
if (! $question = get_record("quiz_questions", "id", $id)) {
error("This question doesn't exist");
}
if (!empty($category)) {
$question->category = $category;
}
if (! $category = get_record("quiz_categories", "id", $question->category)) {
error("This question doesn't belong to a valid category!");
}