From 9b25d35767fac39e54d7c5e4ca9122bda4895746 Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 10 Dec 2002 14:52:07 +0000 Subject: [PATCH] fixed bug with label of html_options --- NEWS | 1 + libs/plugins/function.html_options.php | 4 ++-- plugins/function.html_options.php | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 48febe25..2508f4e6 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - fixed bug with label for html_options (Monte) - added caching to config file loading (Monte) - added "extra" parameter to mailto function (Monte, Massimiliano Perantoni) diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php index 6ffc17ba..e68f6c93 100644 --- a/libs/plugins/function.html_options.php +++ b/libs/plugins/function.html_options.php @@ -43,7 +43,7 @@ function smarty_function_html_options($params, &$smarty) function smarty_function_html_options_optoutput($key, $value, $selected) { if(!is_array($value)) { - $html_result = "\n"; foreach ($values as $key => $value) { $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected); } diff --git a/plugins/function.html_options.php b/plugins/function.html_options.php index 6ffc17ba..e68f6c93 100644 --- a/plugins/function.html_options.php +++ b/plugins/function.html_options.php @@ -43,7 +43,7 @@ function smarty_function_html_options($params, &$smarty) function smarty_function_html_options_optoutput($key, $value, $selected) { if(!is_array($value)) { - $html_result = "\n"; foreach ($values as $key => $value) { $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected); }