Permalink
Browse files

MDL-35868: quiz: Use correct attemptnumber when a last attempt exists.

  • Loading branch information...
tlock authored and danpoltawski committed Mar 28, 2013
1 parent 7d253e0 commit 7dc59651b05b8f93a17f950795658c75d1fc936c
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/startattempt.php
@@ -105,7 +105,7 @@
} else {
// Get number for the next or unfinished attempt.
- if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) {
+ if ($lastattempt) {
$attemptnumber = $lastattempt->attempt + 1;
} else {
$lastattempt = false;

0 comments on commit 7dc5965

Please sign in to comment.