From 545765e37210a8b7a3717483f5ad21e07bc29fb0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 4 Apr 2004 14:43:12 +0000 Subject: [PATCH] fixed checkbox options --- lam/templates/profedit/profilecreate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/templates/profedit/profilecreate.php b/lam/templates/profedit/profilecreate.php index 628da9c7..9edc4bc1 100644 --- a/lam/templates/profedit/profilecreate.php +++ b/lam/templates/profedit/profilecreate.php @@ -63,8 +63,8 @@ foreach ($opt_keys as $element) { } // checkboxes elseif ($_SESSION['profile_types'][$element] == "checkbox") { - if ($_POST[$element] == "checked") $options[$element] = array(true); - else $options[$element] = array(false); + if ($_POST[$element] == "on") $options[$element] = array('true'); + else $options[$element] = array('false'); } // dropdownbox elseif ($_SESSION['profile_types'][$element] == "select") {