summaryrefslogtreecommitdiffstats
path: root/system/helpers/form_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/form_helper.php')
-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"' : '';
}
}