Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-11867 setting real null when response is null in calculated quest…

…ion merged from

 head
  • Loading branch information...
commit 5e0da4b5ee566807d51327d0cabca45f2cfa9ba2 1 parent 4b952ed
authored November 01, 2007
2  question/type/shortanswer/questiontype.php
@@ -138,7 +138,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
138 138
 
139 139
         /// Print input controls
140 140
 
141  
-        if (isset($state->responses[''])) {
  141
+        if (isset($state->responses['']) && $state->responses['']!='' ) {
142 142
             $value = ' value="'.s($state->responses[''], true).'" ';
143 143
         } else {
144 144
             $value = ' value="" ';

0 notes on commit 5e0da4b

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