From c3c3430e714629a526c7dbd0a7e1d63c319fec36 Mon Sep 17 00:00:00 2001 From: messju Date: Sun, 22 Feb 2004 23:29:08 +0000 Subject: [PATCH] removed notice on html_select_date with the month_empty-attribute --- libs/plugins/function.html_select_date.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/plugins/function.html_select_date.php b/libs/plugins/function.html_select_date.php index ac4f2a14..3de7f532 100644 --- a/libs/plugins/function.html_select_date.php +++ b/libs/plugins/function.html_select_date.php @@ -183,10 +183,9 @@ function smarty_function_html_select_date($params, &$smarty) $month_result .= smarty_function_html_options(array('output' => $month_names, 'values' => $month_values, - 'selected' => $month_values[(int)$time[1]], + 'selected' => $a=$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '', 'print_result' => false), $smarty); - $month_result .= ''; }