diff options
Diffstat (limited to 'system/helpers')
-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)
|