MDL-11867 setting real null when response is null in calculated question

This commit is contained in:
pichetp 2007-11-01 00:27:57 +00:00
parent 1203d9d095
commit 34018d81aa

View File

@ -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="" ';