summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
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"' : '';
}