aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 15:34:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 15:34:33 +0000
commitc05e56381cac6ed2c26d71df64f15b1ef9491066 (patch)
tree2c700074392ccde42713a79f2ea4d309f70cec6c /views/default/input/radio.php
parentc0b2b602d445403cf541b6ec2ce24654c4650fde (diff)
downloadelgg-c05e56381cac6ed2c26d71df64f15b1ef9491066.tar.gz
elgg-c05e56381cac6ed2c26d71df64f15b1ef9491066.tar.bz2
fixing a few bugs introduced last night in the input views
git-svn-id: http://code.elgg.org/elgg/trunk@8158 36083f99-b078-4883-b0ff-0f9b5a30f544
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);