summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-04-27 05:33:21 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-04-27 05:33:21 +0200
commitcea5dbe08c909c5efa54bbaa56980b2288bbd296 (patch)
tree7e8f575839e78e61eda39e47cf0c5826c54e3846 /system/helpers
parentcda47ee2aadbda3e6ad6adac2f0f9a0099f5b321 (diff)
fixed checked = 1 to be checked = checked in array created checkboxes
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php6
1 files changed, 6 insertions, 0 deletions
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)