MDL-36897 quiz review: fixup previous commit.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 12 Dec 2012 08:12:16 +0000 (08:12 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 12 Dec 2012 08:13:43 +0000 (08:13 +0000)
mod/quiz/summary.php

index cf6068d..ae99ee5 100644 (file)
@@ -39,7 +39,7 @@ require_login($attemptobj->get_course(), false, $attemptobj->get_cm());
 // Check that this attempt belongs to this user.
 if ($attemptobj->get_userid() != $USER->id) {
     if ($attemptobj->has_capability('mod/quiz:viewreports')) {
 // Check that this attempt belongs to this user.
 if ($attemptobj->get_userid() != $USER->id) {
     if ($attemptobj->has_capability('mod/quiz:viewreports')) {
-        redirect($attemptobj->review_url(null, $page));
+        redirect($attemptobj->review_url(null));
     } else {
         throw new moodle_quiz_exception($attemptobj->get_quizobj(), 'notyourattempt');
     }
     } else {
         throw new moodle_quiz_exception($attemptobj->get_quizobj(), 'notyourattempt');
     }