diff --git a/course/mod.php b/course/mod.php index 151f821c7c5..719b6330855 100644 --- a/course/mod.php +++ b/course/mod.php @@ -600,7 +600,7 @@ $form->coursemodule = ""; $form->mode = "add"; $form->sesskey = !empty($USER->id) ? $USER->sesskey : ''; - if (isset_param('type')) { + if (!empty($type)) { $form->type = $type; }