MDL-20636 Fix potential bug with qtype_shortanswer correct answer display.

This commit is contained in:
Tim Hunt
2011-05-25 19:29:01 +01:00
parent fa6c862065
commit df55047ee4
+1 -1
View File
@@ -112,7 +112,7 @@ class qtype_shortanswer_renderer extends qtype_renderer {
public function correct_response(question_attempt $qa) {
$question = $qa->get_question();
$answer = reset($question->get_answers());
$answer = $question->get_matching_answer($question->get_correct_response());
if (!$answer) {
return '';
}