BUG FIX for Bug #3059: if there is not a response to an answer, the response gets set to an empty string

This commit is contained in:
michaelpenne
2005-06-06 18:26:49 +00:00
parent 05786bc6fd
commit eba970bffc
+3
View File
@@ -84,6 +84,8 @@
if (isset($form->response[$i])) {
$oldanswer->response = clean_param(trim($form->response[$i]), PARAM_CLEANHTML);
$oldanswer->response = addslashes($oldanswer->response);
} else {
$oldanswer->response = '';
}
$oldanswer->jumpto = clean_param($form->jumpto[$i], PARAM_INT);
/// CDC-FLAG ///
@@ -146,6 +148,7 @@
}
}
}
if ($form->redisplay) {
redirect("lesson.php?id=$cm->id&action=editpage&pageid=$page->id");
} else {