Skip to content
Browse files

MDL-34599 mod_quiz: optional $thispage & $nextpage

The previous change making the params required was a regression.
  • Loading branch information...
1 parent 854a374 commit a9dcb448305f36e39c1d55f7b167926831908aa9 @danpoltawski danpoltawski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/processattempt.php
View
4 mod/quiz/processattempt.php
@@ -38,8 +38,8 @@
// Get submitted parameters.
$attemptid = required_param('attempt', PARAM_INT);
-$thispage = required_param('thispage', PARAM_INT);
-$nextpage = required_param('nextpage', PARAM_INT);
+$thispage = optional_param('thispage', 0, PARAM_INT);
+$nextpage = optional_param('nextpage', 0, PARAM_INT);
$next = optional_param('next', false, PARAM_BOOL);
$finishattempt = optional_param('finishattempt', false, PARAM_BOOL);
$timeup = optional_param('timeup', 0, PARAM_BOOL); // True if form was submitted by timer.

0 comments on commit a9dcb44

Please sign in to comment.
Something went wrong with that request. Please try again.