cvs: smarty / NEWS /libs/plugins function.html_radios.php
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1113582750@cvsserver> |
mohrt Fri Apr 15 12:32:30 2005 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins function.html_radios.php
Log:
cast selected value to string for comparison in html_radios
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.499&r2=1.500&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.499 smarty/NEWS:1.500
--- smarty/NEWS:1.499 Thu Apr 7 14:11:23 2005
+++ smarty/NEWS Fri Apr 15 12:32:29 2005
@@ -1,3 +1,5 @@
+ - cast selected value to string for comparison in html_radios
+ (Exeption, monte)
- updated html_select_date's year_as_text-feature to be xhtml compliant
(Mark West, messju)
- fix handling of selected month html_select_date (Yuri Weseman, messju)
http://cvs.php.net/diff.php/smarty/libs/plugins/function.html_radios.php?r1=1.25&r2=1.26&ty=u
Index: smarty/libs/plugins/function.html_radios.php
diff -u smarty/libs/plugins/function.html_radios.php:1.25 smarty/libs/plugins/function.html_radios.php:1.26
--- smarty/libs/plugins/function.html_radios.php:1.25 Thu Feb 24 09:37:48 2005
+++ smarty/libs/plugins/function.html_radios.php Fri Apr 15 12:32:30 2005
@@ -137,7 +137,7 @@
if ($labels) $_output .= ' id="' . $_id . '"';
- if ($value==$selected) {
+ if ((string)$value==$selected) {
$_output .= ' checked="checked"';
}
$_output .= $extra . ' />' . $output;
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php