Merge branch 'MDL-26724' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-03-13 22:57:06 +01:00
commit 4f7fd61a7a

View file

@ -63,7 +63,7 @@
?> 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 {
if(isset($question->options->units) && count($question->options->units) > 0){