MDL-34599 mod_quiz: optional $thispage & $nextpage

The previous change making the params required was a regression.
This commit is contained in:
Dan Poltawski
2012-08-01 09:05:32 +08:00
parent df0d0fdee7
commit a8b8f472bd
+2 -2
View File
@@ -38,8 +38,8 @@ $timenow = time();
// 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.