From 04a503f2cfc618fb3dc828cf2a6624c8dd17ca16 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 7 Apr 2005 18:06:21 +0000 Subject: [PATCH] fixed handling of selected month html_select_date thanks to Yuri Weseman for providing problem+solution --- NEWS | 2 ++ libs/plugins/function.html_select_date.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0fbb704c..df3571df 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fix handling of selected month html_select_date (Yuri Weseman, messju) + Version 2.6.9 (Mar 31, 2005) ---------------------------- diff --git a/libs/plugins/function.html_select_date.php b/libs/plugins/function.html_select_date.php index fc2d449a..d81b8906 100644 --- a/libs/plugins/function.html_select_date.php +++ b/libs/plugins/function.html_select_date.php @@ -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 .= '';