MDL-26724 notice from numerical qtype when no answer is given.

This commit is contained in:
Tim Hunt
2011-03-08 10:43:48 +00:00
parent 48fe5c6cf9
commit 7e0218e79f
+2 -2
View File
@@ -63,9 +63,9 @@
?> size="<?php echo $textlength;?>"/>
<?php if ($state->responses['unit'] != '') echo $feedbackimgunit;
if ($options->feedback && $question->options->unitgradingtype == 1 && ! $valid_numerical_unit && ! $answerasterisk ){
if ( $empty_unit) {
if (!empty($empty_unit)) {
print_string('unitmandatory', 'qtype_numerical');
}else {
} else {
if(isset($question->options->units) && count($question->options->units) > 0){
$found = 0 ;
$valid_unit_found = 0 ;