MDL-27570 quiz: check if time is really up

This commit is contained in:
Philipp Imhof
2022-09-21 11:38:24 +01:00
committed by Tim Hunt
parent 844abeaf5d
commit bebdb51753
+5
View File
@@ -2405,6 +2405,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;