Skip to content

Commit

Permalink
MDL-34599 mod_quiz: optional $thispage & $nextpage
Browse files Browse the repository at this point in the history
The previous change making the params required was a regression.
  • Loading branch information
danpoltawski committed Aug 1, 2012
1 parent 854a374 commit a9dcb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/processattempt.php
Expand Up @@ -38,8 +38,8 @@


// Get submitted parameters. // Get submitted parameters.
$attemptid = required_param('attempt', PARAM_INT); $attemptid = required_param('attempt', PARAM_INT);
$thispage = required_param('thispage', PARAM_INT); $thispage = optional_param('thispage', 0, PARAM_INT);
$nextpage = required_param('nextpage', PARAM_INT); $nextpage = optional_param('nextpage', 0, PARAM_INT);
$next = optional_param('next', false, PARAM_BOOL); $next = optional_param('next', false, PARAM_BOOL);
$finishattempt = optional_param('finishattempt', false, PARAM_BOOL); $finishattempt = optional_param('finishattempt', false, PARAM_BOOL);
$timeup = optional_param('timeup', 0, PARAM_BOOL); // True if form was submitted by timer. $timeup = optional_param('timeup', 0, PARAM_BOOL); // True if form was submitted by timer.
Expand Down

0 comments on commit a9dcb44

Please sign in to comment.