Explorar el Código

Minor - don't show "0" as result

jmontoyaa hace 7 años
padre
commit
d7fa489ea7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      main/exercise/exercise.class.php

+ 3 - 0
main/exercise/exercise.class.php

@@ -6058,6 +6058,9 @@ class Exercise
             $question = $item['question'];
             $file = $item['generated_oral_file'];
             $answer = $item['answer'];
+            if ($answer == 0) {
+                $answer = '';
+            }
             $answer_type = $item['answer_type'];
             if (!empty($question) && (!empty($answer) || !empty($file)) && $answer_type == ORAL_EXPRESSION) {
                 if (!empty($file)) {