aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/input/checkboxes.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php
index 2b9970aaa..da53bf271 100644
--- a/views/default/input/checkboxes.php
+++ b/views/default/input/checkboxes.php
@@ -19,18 +19,20 @@
*/
$class = $vars['class'];
- if (!$class) $class = "input-checkboxes";
-
+ if (!$class) $class = "input-checkboxes";
+
foreach($vars['options'] as $label => $option) {
//if (!in_array($option,$vars['value'])) {
if (is_array($vars['value'])) {
- if (!in_array($option,$vars['value'])) {
+ $valarray = $vars['value'];
+ $valarray = array_map('strtolower', $valarray);
+ if (!in_array(strtolower($option),$valarray)) {
$selected = "";
} else {
$selected = "checked = \"checked\"";
}
} else {
- if ($option != $vars['value']) {
+ if (strtolower($option) != strtolower($vars['value'])) {
$selected = "";
} else {
$selected = "checked = \"checked\"";