From: pichetp Date: Thu, 1 Nov 2007 00:27:57 +0000 (+0000) Subject: MDL-11867 setting real null when response is null in calculated question X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=34018d81aa09533f2f5a76c9fbf269993e32168d;p=moodle.git MDL-11867 setting real null when response is null in calculated question --- diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 58e5620834..913b1e7bbb 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -142,7 +142,7 @@ class question_shortanswer_qtype extends default_questiontype { /// Print input controls - if (isset($state->responses[''])) { + if (isset($state->responses['']) && $state->responses['']!='') { $value = ' value="'.s($state->responses[''], true).'" '; } else { $value = ' value="" ';