MDL-9819 - Restoring numerical questions was broken

This commit is contained in:
poltawski
2007-05-15 14:49:14 +00:00
parent 31942aff61
commit 652fab8576
-3
View File
@@ -478,9 +478,6 @@ class question_numerical_qtype extends question_shortanswer_qtype {
$numerical = new stdClass;
$numerical->question = $new_question_id;
$numerical->answer = backup_todb($num_info['#']['ANSWER']['0']['#']);
if ($numerical->answer = '') {
$numerical->answer = '*';
}
$numerical->tolerance = backup_todb($num_info['#']['TOLERANCE']['0']['#']);
//We have to recode the answer field