From 34018d81aa09533f2f5a76c9fbf269993e32168d Mon Sep 17 00:00:00 2001 From: pichetp Date: Thu, 1 Nov 2007 00:27:57 +0000 Subject: [PATCH] MDL-11867 setting real null when response is null in calculated question --- question/type/shortanswer/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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="" '; -- 2.39.5