summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-09-13 17:29:29 +0200
committerAndrey Andreev <narf@devilix.net>2013-09-13 17:29:29 +0200
commite8a23a532a4974773067903bf96200fa12fa4d41 (patch)
treedc97b2247c5d3a4ebc70d4741c371af8317d60b2 /system/helpers
parentf4bfb16b5fdcd042d3751cab2626df678b8d59c0 (diff)
An update to the #2639 fix
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/form_helper.php4
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"' : '';
}