summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-17 06:34:52 +0100
committerAndrew Dolgov <[email protected]>2005-11-17 06:34:52 +0100
commit5da169d99285701831b385650a712a9d41c38da4 (patch)
tree8d416a9edb25ee0fb146b56d4fff3e88685be21e /functions.php
parentbc0e653d21e908370c9c1fbd04b71ca10061e430 (diff)
print_radio() fixes
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 75fc8003c..08a00246f 100644
--- a/functions.php
+++ b/functions.php
@@ -458,9 +458,15 @@
foreach ($values as $v) {
if ($v == $default)
- $sel = "checked value=\"1\"";
+ $sel = "checked";
else
- $sel = "value=\"0\"";
+ $sel = "";
+
+ if ($v == "Yes") {
+ $sel .= " value=\"1\"";
+ } else {
+ $sel .= " value=\"0\"";
+ }
print "<input type=\"radio\" $sel $attributes name=\"$id\">&nbsp;$v&nbsp;";