Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for the infamous zero problem in short answers.
You can now have answers that are "0"
  • Loading branch information
moodler committed Mar 26, 2006
1 parent 7649c6f commit 1e3787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/questiontypes/shortanswer/shortanswer.html
Expand Up @@ -94,7 +94,7 @@
<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 = '';
Expand Down

0 comments on commit 1e3787c

Please sign in to comment.