Skip to content

Commit

Permalink
MDL-38647 quiz review question issue
Browse files Browse the repository at this point in the history
Page URL should contain 'step=0' if necessary, but not 'step='.
  • Loading branch information
timhunt committed Mar 22, 2013
1 parent 8bb0c27 commit f466f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/reviewquestion.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$baseurl = new moodle_url('/mod/quiz/reviewquestion.php', $baseurl = new moodle_url('/mod/quiz/reviewquestion.php',
array('attempt' => $attemptid, 'slot' => $slot)); array('attempt' => $attemptid, 'slot' => $slot));
$currenturl = new moodle_url($baseurl); $currenturl = new moodle_url($baseurl);
if ($seq !== 0) { if (!is_null($seq)) {
$currenturl->param('step', $seq); $currenturl->param('step', $seq);
} }
$PAGE->set_url($currenturl); $PAGE->set_url($currenturl);
Expand Down

0 comments on commit f466f71

Please sign in to comment.