From c2045f3436fb813c5a0bc446a20a145fda7e1f1b Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 1 Jan 2003 06:41:35 +0000 Subject: [PATCH] Changes for robustness --- course/mod.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/mod.php b/course/mod.php index 8738dde9c3..04456185c1 100644 --- a/course/mod.php +++ b/course/mod.php @@ -237,7 +237,8 @@ $form->course = $course->id; $form->module = $module->id; $form->modulename = $module->name; - $form->instance = $cm->instance; + $form->instance = ""; + $form->coursemodule = ""; $form->mode = "add"; $sectionname = get_string("name$course->format"); -- 2.39.5