From: tjhunt Date: Mon, 12 Jun 2006 11:05:39 +0000 (+0000) Subject: Bug #5790: Answer order for MC qtype not specified. Fix. Thanks to Peter Bulmer.... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4f7eaab66147c42dde2030b9df7938a7a4338898;p=moodle.git Bug #5790: Answer order for MC qtype not specified. Fix. Thanks to Peter Bulmer. Merged from MOODLE_16_STABLE. --- diff --git a/question/type/multichoice/questiontype.php b/question/type/multichoice/questiontype.php index e817d05d1d..cc3bc51a76 100644 --- a/question/type/multichoice/questiontype.php +++ b/question/type/multichoice/questiontype.php @@ -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; }