MDL-27570 quiz: check if time is really up

This commit is contained in:
Philipp Imhof
2022-09-21 11:39:14 +01:00
committed by Tim Hunt
parent 6fd68977ac
commit dacd86c23c
+5
View File
@@ -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;