From ba28853909a559d151fb060ea646b3456c97dab5 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 8 Aug 2004 15:09:39 +0000 Subject: [PATCH] And some more --- mod/quiz/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 284a8a08290..7fe0de0c343 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -432,7 +432,7 @@ function quiz_update_instance($quiz) { $event->instance = $quiz->id; $event->eventtype = 'open'; $event->timestart = $quiz->timeopen; - $event->visible = instance_is_visible('quiz', $quiz->id); + $event->visible = instance_is_visible('quiz', $quiz); $event->timeduration = ($quiz->timeclose - $quiz->timeopen); if ($event->timeduration > QUIZ_MAX_EVENT_LENGTH) { /// Long durations create two events @@ -630,7 +630,7 @@ function quiz_refresh_events($courseid = 0) { $event->userid = 0; $event->modulename = 'quiz'; $event->instance = $quiz->id; - $event->visible = instance_is_visible('quiz', $quiz->id); + $event->visible = instance_is_visible('quiz', $quiz); $event->timestart = $quiz->timeopen; $event->eventtype = 'open'; $event->timeduration = ($quiz->timeclose - $quiz->timeopen);