Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG FIX for Bug #3059: if there is not a response to an answer, the r…

…esponse gets set to an empty string
  • Loading branch information...
commit eba970bffc0da9d84df89ec33020163837d7aa37 1 parent 05786bc
michaelpenne authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  mod/lesson/action/updatepage.php
View
3  mod/lesson/action/updatepage.php
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.