From cea5dbe08c909c5efa54bbaa56980b2288bbd296 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Fri, 27 Apr 2007 03:33:21 +0000 Subject: fixed checked = 1 to be checked = checked in array created checkboxes --- system/helpers/form_helper.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'system/helpers') diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index adbddd5ad..531ab66c0 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -260,7 +260,13 @@ function form_checkbox($data = '', $value = '', $checked = TRUE, $extra = '') $checked = $data['checked']; if ($checked == FALSE) + { unset($data['checked']); + } + else + { + $data['checked'] = 'checked'; + } } if ($checked == TRUE) -- cgit v1.2.3-24-g4f1b