merge from 18_STABLE MDL-8475

This commit is contained in:
pichetp
2007-03-03 04:43:50 +00:00
parent 2e7bdb5193
commit fe881becb2
+1 -1
View File
@@ -114,7 +114,7 @@ class question_numerical_qtype extends question_shortanswer_qtype {
// Insert all the new answers
foreach ($question->answer as $key => $dataanswer) {
if ($dataanswer != '' || trim($question->feedback[$key])) {
if (!isset( $question->deleteanswer[$key] ) && !( trim($dataanswer) == 0 && $question->fraction[$key]== 0 &&trim($question->feedback[$key])=='')) {
$answer = new stdClass;
$answer->question = $question->id;
if (trim($dataanswer) == '*') {