diff options
author | Andrey Andreev <narf@devilix.net> | 2013-09-13 17:29:29 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-09-13 17:29:29 +0200 |
commit | e8a23a532a4974773067903bf96200fa12fa4d41 (patch) | |
tree | dc97b2247c5d3a4ebc70d4741c371af8317d60b2 | |
parent | f4bfb16b5fdcd042d3751cab2626df678b8d59c0 (diff) |
An update to the #2639 fix
-rw-r--r-- | system/helpers/form_helper.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 20379efa7..7112a99b7 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -717,6 +717,10 @@ if ( ! function_exists('set_checkbox')) { return ($default === TRUE) ? ' checked="checked"' : ''; } + elseif (is_array($input) && in_array($value, $input, TRUE)) + { + return ' checked="checked"'; + } return ($input === $value) ? ' checked="checked"' : ''; } |