summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-09-13 17:36:29 +0200
committerAndrey Andreev <narf@devilix.net>2013-09-13 17:36:29 +0200
commitd3b7e24b708623be425dc03c3bb429bf0e4741c8 (patch)
treebeb77a27c6c5ae4e750d3143b02edc1954733568 /system/helpers
parente8a23a532a4974773067903bf96200fa12fa4d41 (diff)
Another one following #2639
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php6
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"' : '';
}
}