]> git.mjollnir.org Git - moodle.git/commitdiff
Fix typo.
authortjhunt <tjhunt>
Mon, 28 Aug 2006 18:50:42 +0000 (18:50 +0000)
committertjhunt <tjhunt>
Mon, 28 Aug 2006 18:50:42 +0000 (18:50 +0000)
mod/quiz/view.php

index 913037e072a684dfa6efcb4fe89f7249623eff7d..1912dc7b966333532df68a8c6a082305555c3516 100644 (file)
                 // 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') .
                                 '<b>'. userdate($lastattempt + $quiz->delay1). '<b>';