mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed handling of selected month html_select_date
thanks to Yuri Weseman for providing problem+solution
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- fix handling of selected month html_select_date (Yuri Weseman, messju)
|
||||
|
||||
Version 2.6.9 (Mar 31, 2005)
|
||||
----------------------------
|
||||
|
||||
|
@@ -198,7 +198,7 @@ function smarty_function_html_select_date($params, &$smarty)
|
||||
|
||||
$month_result .= smarty_function_html_options(array('output' => $month_names,
|
||||
'values' => $month_values,
|
||||
'selected' => $a=$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '',
|
||||
'selected' => (int)$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '',
|
||||
'print_result' => false),
|
||||
$smarty);
|
||||
$month_result .= '</select>';
|
||||
|
Reference in New Issue
Block a user