diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-04-27 05:33:21 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-04-27 05:33:21 +0200 |
commit | cea5dbe08c909c5efa54bbaa56980b2288bbd296 (patch) | |
tree | 7e8f575839e78e61eda39e47cf0c5826c54e3846 /system | |
parent | cda47ee2aadbda3e6ad6adac2f0f9a0099f5b321 (diff) |
fixed checked = 1 to be checked = checked in array created checkboxes
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/form_helper.php | 6 |
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)
|