MDL-26734 fatal error on the quiz review page when reviews are not allowed.

Sorry silly error by me, merging code from my 2.1 work.
This commit is contained in:
Tim Hunt
2011-03-09 15:22:15 +00:00
parent c09604234a
commit 5f36713765
+1 -1
View File
@@ -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()) {