From: tjhunt Date: Mon, 28 Aug 2006 18:50:42 +0000 (+0000) Subject: Fix typo. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f0a7247d0ed32dc6ca4aa75c79b63627e9edebf4;p=moodle.git Fix typo. --- 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). '';