diff options
author | Andrey Andreev <narf@devilix.net> | 2013-09-13 17:36:29 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-09-13 17:36:29 +0200 |
commit | d3b7e24b708623be425dc03c3bb429bf0e4741c8 (patch) | |
tree | beb77a27c6c5ae4e750d3143b02edc1954733568 /system | |
parent | e8a23a532a4974773067903bf96200fa12fa4d41 (diff) |
Another one following #2639
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/form_helper.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php index 7112a99b7..0cc5bd157 100644 --- a/system/helpers/form_helper.php +++ b/system/helpers/form_helper.php @@ -685,8 +685,12 @@ if ( ! function_exists('set_select')) { return ($default === TRUE) ? ' selected="selected"' : ''; } + elseif (is_array($input) && in_array($value, $input, TRUE)) + { + return ' selected="selected"'; + } - return ($input === $value) ? ' checked="selected"' : ''; + return ($input === $value) ? ' selected="selected"' : ''; } } |