diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/radio.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/input/radio.php b/views/default/input/radio.php index befba392a..a8b278efd 100644 --- a/views/default/input/radio.php +++ b/views/default/input/radio.php @@ -59,7 +59,7 @@ if ($options && count($options) > 0) { echo "<ul class=\"$class\" $id>"; foreach ($options as $label => $option) { - $vars['checked'] = elgg_strtolower($option) == elgg_strtolower($value); + $vars['checked'] = in_array(elgg_strtolower($option), $value); $vars['value'] = $option; $attributes = elgg_format_attributes($vars); |