From: moodler Date: Mon, 9 Jun 2003 05:34:24 +0000 (+0000) Subject: Better setting of defaults X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=14f593e1762887f483e1dd3262045bd304f185c4;p=moodle.git Better setting of defaults --- diff --git a/mod/forum/mod.html b/mod/forum/mod.html index c2a457da94..7c9880d0c9 100644 --- a/mod/forum/mod.html +++ b/mod/forum/mod.html @@ -1,20 +1,20 @@ name)) { + if (!isset($form->name)) { $form->name = ""; } - if (empty($form->type)) { + if (!isset($form->type)) { $form->type = ""; } - if (empty($form->intro)) { + if (!isset($form->intro)) { $form->intro = ""; } - if (empty($form->open)) { + if (!isset($form->open)) { $form->open = 2; } - if (empty($form->assessed)) { + if (!isset($form->assessed)) { $form->assessed = ""; } - if (empty($form->forcesubscribe)) { + if (!isset($form->forcesubscribe)) { $form->forcesubscribe = ""; } ?>