diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index 96a3fe6df4b..d4011b39cd7 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -107,7 +107,7 @@ class question_numerical_qtype extends question_shortanswer_qtype { // Insert all the new answers foreach ($question->answer as $key => $dataanswer) { - if (!isset( $question->deleteanswer[$key] ) && !( trim($dataanswer) == 0 && $question->fraction[$key]== 0 &&trim($question->feedback[$key])=='')) { + if ( !( trim($dataanswer)=='' && $question->fraction[$key]== 0 && trim($question->feedback[$key])=='')) { $answer = new stdClass; $answer->question = $question->id; if (trim($dataanswer) == '*') {