aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-06 20:44:51 -0400
committercash <cash.costello@gmail.com>2011-07-06 20:44:51 -0400
commitb7bcc8404b9385ac70a8e9a62feba4e97f82b7ae (patch)
tree67f2acc36caffbb7d80df8fae5ca34e6f3f535a4 /views
parentb4f9682d2dae28db4ee183909be3ae439be2a858 (diff)
downloadelgg-b7bcc8404b9385ac70a8e9a62feba4e97f82b7ae.tar.gz
elgg-b7bcc8404b9385ac70a8e9a62feba4e97f82b7ae.tar.bz2
Refs #3624 fixed radio button value detection
Diffstat (limited to 'views')
-rw-r--r--views/default/input/radio.php2
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);