From f0a7247d0ed32dc6ca4aa75c79b63627e9edebf4 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 28 Aug 2006 18:50:42 +0000 Subject: [PATCH] Fix typo. --- mod/quiz/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/quiz/view.php b/mod/quiz/view.php index 913037e072..1912dc7b96 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -324,7 +324,8 @@ // Work out if the quiz is temporarily unavailable becuase of the delay option. if (!empty($attempts)) { $tempunavailable = ''; - $lastattempttime = end($attempts)->timefinish; + $lastattempt = end($attempts); + $lastattempttime = $lastattempt->timefinish; if ($numattempts == 1 && $quiz->delay1 && $timenow <= $lastattempttime + $quiz->delay1) { $tempunavailable = get_string('temporaryblocked', 'quiz') . ''. userdate($lastattempt + $quiz->delay1). ''; -- 2.39.5