From 5da169d99285701831b385650a712a9d41c38da4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Nov 2005 06:34:52 +0100 Subject: print_radio() fixes --- functions.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'functions.php') 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 " $v "; -- cgit v1.2.3-54-g00ecf