Permalink
Browse files

MDL-31385 quiz: does not resume previews.

  • Loading branch information...
1 parent 2d5dc5f commit 38f9d1b6b825f6f5db9416ba9721a040381c2cda @timhunt timhunt committed Jan 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/startattempt.php
View
2 mod/quiz/startattempt.php
@@ -64,7 +64,7 @@
}
/// Look for an existing attempt.
-$attempts = quiz_get_user_attempts($quiz->id, $USER->id, 'all');
+$attempts = quiz_get_user_attempts($quiz->id, $USER->id, 'all', true);
$lastattempt = end($attempts);
if ($lastattempt && !$lastattempt->timefinish) {

0 comments on commit 38f9d1b

Please sign in to comment.