commit | cea5dbe08c909c5efa54bbaa56980b2288bbd296 | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Fri Apr 27 03:33:21 2007 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Fri Apr 27 03:33:21 2007 +0000 |
tree | 7e8f575839e78e61eda39e47cf0c5826c54e3846 | |
parent | cda47ee2aadbda3e6ad6adac2f0f9a0099f5b321 [diff] [blame] |
fixed checked = 1 to be checked = checked in array created checkboxes
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index adbddd5..531ab66 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php
@@ -260,7 +260,13 @@ $checked = $data['checked']; if ($checked == FALSE) + { unset($data['checked']); + } + else + { + $data['checked'] = 'checked'; + } } if ($checked == TRUE)