Bug #5790: Answer order for MC qtype not specified. Fix. Thanks to Peter Bulmer.

This commit is contained in:
tjhunt
2006-06-12 11:03:11 +00:00
parent b862c77e93
commit 4bbd7130f1
+1 -1
View File
@@ -26,7 +26,7 @@ class question_multichoice_qtype extends default_questiontype {
return false;
}
if (!$question->options->answers = get_records_select('question_answers', 'id IN ('.$question->options->answers.')')) {
if (!$question->options->answers = get_records_select('question_answers', 'id IN ('.$question->options->answers.')', 'id')) {
notify('Error: Missing question answers for multichoice question'.$question->id.'!');
return false;
}