diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-22 18:34:31 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-22 18:34:31 +0000 |
commit | b7873357beebe405d3df679fc5dba86ea9660acd (patch) | |
tree | 09df254f3345c0eb66694b90349f70da3e393f94 /views/default/input/radio.php | |
parent | 772ce3992c4b5892e6c13be94b1a55a8bac17dcf (diff) | |
download | elgg-b7873357beebe405d3df679fc5dba86ea9660acd.tar.gz elgg-b7873357beebe405d3df679fc5dba86ea9660acd.tar.bz2 |
Fix for input/radio where keys aren't specified
git-svn-id: https://code.elgg.org/elgg/trunk@2301 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/radio.php')
-rw-r--r-- | views/default/input/radio.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/radio.php b/views/default/input/radio.php index be5554e8b..8e5b456e9 100644 --- a/views/default/input/radio.php +++ b/views/default/input/radio.php @@ -26,6 +26,10 @@ $selected = "";
} else {
$selected = "checked = \"checked\"";
+ }
+ $labelint = (int) $label;
+ if ("{$label}" == "{$labelint}") {
+ $label = $option;
} if ($vars['disabled']) $disabled = ' disabled="yes" ';
|