Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7e0218e79f0fc50aa8f4e5c1a53f1ffcc2c301c3 1 parent 48fe5c6
@timhunt timhunt authored
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 ;
Please sign in to comment.
Something went wrong with that request. Please try again.