MDL-30689 qtype base: fix typo in extra_answer_fields code.

This commit is contained in:
Tim Hunt
2011-12-11 22:15:48 +00:00
parent bdfd90b105
commit da1bee2cb9
+1 -1
View File
@@ -488,7 +488,7 @@ class default_questiontype {
$question->options->answers = $DB->get_records_sql("
SELECT qa.*, qax." . implode(', qax.', $extra_answer_fields) . "
FROM {question_answers} qa, {$answer_extension_table} qax
WHERE qa.questionid = ? AND qax.answerid = qa.id", array($question->id));
WHERE qa.question = ? AND qax.answerid = qa.id", array($question->id));
if (!$question->options->answers) {
echo $OUTPUT->notification("Failed to load question answers from the table $answer_extension_table for questionid " .
$question->id);