]> git.mjollnir.org Git - moodle.git/commitdiff
Shortanswers can now be '0'
authormoodler <moodler>
Sun, 26 Mar 2006 15:03:08 +0000 (15:03 +0000)
committermoodler <moodler>
Sun, 26 Mar 2006 15:03:08 +0000 (15:03 +0000)
question/type/shortanswer/editquestion.html

index 5c4ed020740ef6cace01f03a3d57f2e197f44e5d..2a7040d4ef0a898aefa751754a296c80583a7b18 100644 (file)
     <td align="right"><b><?php  echo get_string("answer", "quiz")." $i";  ?>:</b></td>
     <td align="left">
         <?php
-            if (empty($answers[$i-1]->answer)) {
+            if ($answers[$i-1]->answer === '') {
                 $answertext   = '';
                 $fractionval  = 0;
                 $feedbacktext = '';