commit | e8a23a532a4974773067903bf96200fa12fa4d41 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Sep 13 18:29:29 2013 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Fri Sep 13 18:29:29 2013 +0300 |
tree | dc97b2247c5d3a4ebc70d4741c371af8317d60b2 | |
parent | f4bfb16b5fdcd042d3751cab2626df678b8d59c0 [diff] [blame] |
An update to the #2639 fix
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 20379ef..7112a99 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php
@@ -717,6 +717,10 @@ { return ($default === TRUE) ? ' checked="checked"' : ''; } + elseif (is_array($input) && in_array($value, $input, TRUE)) + { + return ' checked="checked"'; + } return ($input === $value) ? ' checked="checked"' : ''; }