diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 552bbc4e417..ecb933e7a0b 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -305,7 +305,7 @@ class question_shortanswer_qtype extends default_questiontype { echo ' partiallycorrect">'; print_string('partiallycorrect', 'quiz'); // MDL-7496 - if ($correctanswer) { + if ($correctanswer != '') { echo ('
'); print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
'); @@ -314,7 +314,7 @@ class question_shortanswer_qtype extends default_questiontype { echo ' incorrect">'; // MDL-7496 print_string('incorrect', 'quiz'); - if ($correctanswer) { + if ($correctanswer != '') { echo ('
'); print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
');