Merge branch 'MDL-36897_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE
authorDan Poltawski <dan@moodle.com>
Thu, 13 Dec 2012 01:55:07 +0000 (09:55 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 13 Dec 2012 01:55:07 +0000 (09:55 +0800)
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')) {
-        redirect($attemptobj->review_url(null, $page));
+        redirect($attemptobj->review_url(null));
     } else {
         throw new moodle_quiz_exception($attemptobj->get_quizobj(), 'notyourattempt');
     }