Permalink
Browse files

MDL-26734 fatal error on the quiz review page when reviews are not al…

…lowed.

Sorry silly error by me, merging code from my 2.1 work.
  • Loading branch information...
1 parent c096042 commit 5f3671376563e53fac3f32ce363c0c0d5a4dc30a @timhunt timhunt committed Mar 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/review.php
View
@@ -40,7 +40,7 @@
redirect($attemptobj->attempt_url(0, $page));
} else if (!$options->responses) {
$accessmanager->back_to_view_page($attemptobj->is_preview_user(),
- $accessmanager->cannot_review_message($attemptobj->get_attempt_state()));
+ $accessmanager->cannot_review_message($options));
}
} else if (!$attemptobj->is_review_allowed()) {

0 comments on commit 5f36713

Please sign in to comment.