Skip to content
Browse files

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

  • Loading branch information...
2 parents c096042 + 7e0218e commit 4f7fd61a7a2d499980d12af4d7e7bfb61c16b7bc @stronk7 stronk7 committed Mar 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/numerical/display.html
View
4 question/type/numerical/display.html
@@ -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 ;

0 comments on commit 4f7fd61

Please sign in to comment.
Something went wrong with that request. Please try again.