From aa2e6890cb200df14ce83b99127a020ece9b21ca Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 15 Apr 2002 14:56:38 +0000 Subject: [PATCH] fixed logic so this works right when field_separator = "/" --- libs/plugins/function.html_select_date.php | 4 +++- plugins/function.html_select_date.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.html_select_date.php b/libs/plugins/function.html_select_date.php index 94ba9229..59717971 100644 --- a/libs/plugins/function.html_select_date.php +++ b/libs/plugins/function.html_select_date.php @@ -202,7 +202,9 @@ function smarty_function_html_select_date($params, &$smarty) break; } // Add the field seperator - $html_result .= $field_separator; + if($i != 2) { + $html_result .= $field_separator; + } } print $html_result; diff --git a/plugins/function.html_select_date.php b/plugins/function.html_select_date.php index 94ba9229..59717971 100644 --- a/plugins/function.html_select_date.php +++ b/plugins/function.html_select_date.php @@ -202,7 +202,9 @@ function smarty_function_html_select_date($params, &$smarty) break; } // Add the field seperator - $html_result .= $field_separator; + if($i != 2) { + $html_result .= $field_separator; + } } print $html_result;