diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index e7e57717a49..b865d5d3849 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -538,6 +538,10 @@ $secondsleft = ($quiz->timeclose ? $quiz->timeclose : 999999999999) - time(); + if ($isteacher) { + // For teachers ignore the quiz closing time + $secondsleft = 999999999999; + } // If time limit is set include floating timer. if ($quiz->timelimit > 0) {