From 442e308648dd18fb84ae4ae0e2f62f07ac11afba Mon Sep 17 00:00:00 2001 From: pichetp Date: Thu, 1 Nov 2007 00:32:11 +0000 Subject: [PATCH] MDL-11867 setting real null when response is null in calculated question merged from head --- 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 3145f8f37cb..0fb6ec7b805 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="" ';