From 14f593e1762887f483e1dd3262045bd304f185c4 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 9 Jun 2003 05:34:24 +0000 Subject: [PATCH] Better setting of defaults --- mod/forum/mod.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 = ""; } ?> -- 2.39.5