From b7873357beebe405d3df679fc5dba86ea9660acd Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 22 Oct 2008 18:34:31 +0000 Subject: Fix for input/radio where keys aren't specified git-svn-id: https://code.elgg.org/elgg/trunk@2301 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/radio.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'views/default') 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" '; -- cgit v1.2.3