Skip to content

Commit

Permalink
MDL-35868: quiz: Use correct attemptnumber when a last attempt exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlock authored and danpoltawski committed Apr 8, 2013
1 parent 3a509e1 commit 0852e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/startattempt.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@


} else { } else {
// Get number for the next or unfinished attempt. // Get number for the next or unfinished attempt.
if ($lastattempt && !$lastattempt->preview && !$quizobj->is_preview_user()) { if ($lastattempt) {
$attemptnumber = $lastattempt->attempt + 1; $attemptnumber = $lastattempt->attempt + 1;
} else { } else {
$lastattempt = false; $lastattempt = false;
Expand Down

0 comments on commit 0852e56

Please sign in to comment.