projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd4dd3
)
Fixed bug when calling instance_is_visible()
author
moodler
<moodler>
Sun, 8 Aug 2004 15:08:50 +0000
(15:08 +0000)
committer
moodler
<moodler>
Sun, 8 Aug 2004 15:08:50 +0000
(15:08 +0000)
mod/quiz/lib.php
patch
|
blob
|
history
diff --git
a/mod/quiz/lib.php
b/mod/quiz/lib.php
index 1c295b6f656ab3c92eca652340e41106fee15ad1..284a8a08290643d714626ef7d2d8ecd58e902c95 100644
(file)
--- a/
mod/quiz/lib.php
+++ b/
mod/quiz/lib.php
@@
-348,7
+348,7
@@
function quiz_add_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