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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user