aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/radio.php')
-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 60a2d10a6..93db2f637 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -40,7 +40,7 @@ if ($options && count($options) > 0) {
echo "<ul class=\"$class\">";
foreach ($options as $label => $option) {
- $vars['checked'] = elgg_strtolower($option) != elgg_strtolower($vars['value']);
+ $vars['checked'] = elgg_strtolower($option) == elgg_strtolower($value);
$vars['value'] = $option;
$attributes = elgg_format_attributes($vars);