mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-39971' of git://github.com/timhunt/moodle
This commit is contained in:
commit
56ad6d46d1
@ -104,6 +104,10 @@ if ($lastattempt && ($lastattempt->state == quiz_attempt::IN_PROGRESS ||
|
||||
}
|
||||
|
||||
} else {
|
||||
while ($lastattempt && $lastattempt->preview) {
|
||||
$lastattempt = array_pop($attempts);
|
||||
}
|
||||
|
||||
// Get number for the next or unfinished attempt.
|
||||
if ($lastattempt) {
|
||||
$attemptnumber = $lastattempt->attempt + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user