Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Fixed] Bug #1187

  • Loading branch information...
commit 178f9028fdef314c5f44ed8be78eb95de75a5cd2 1 parent 945eb21
michaelpenne authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/action/updatepage.php
View
4 mod/lesson/action/updatepage.php
@@ -121,7 +121,9 @@
$newanswer->answer = addslashes($newanswer->answer);
if (isset($form->response[$i])) {
$newanswer->response = clean_param(trim($form->response[$i]), PARAM_CLEANHTML);
- $newanswer->answer = addslashes($newanswer->answer);
+ $newanswer->response = addslashes($newanswer->response);
+ } else {
+ $newanswer->response = '';
}
$newanswer->jumpto = clean_param($form->jumpto[$i], PARAM_INT);
/// CDC-FLAG ///
Please sign in to comment.
Something went wrong with that request. Please try again.