MDL-27570 quiz: check if time is really up
This commit is contained in:
@@ -2395,6 +2395,11 @@ class quiz_attempt {
|
||||
}
|
||||
}
|
||||
|
||||
// Verify if time is really up; time limit could have been changed.
|
||||
if ($timeup && $timenow < $timeclose - QUIZ_MIN_TIME_TO_CONTINUE) {
|
||||
$timeup = false;
|
||||
}
|
||||
|
||||
// If time is running out, trigger the appropriate action.
|
||||
$becomingoverdue = false;
|
||||
$becomingabandoned = false;
|
||||
|
||||
Reference in New Issue
Block a user