From 120b1df0ed87088b0b37ae8cd8a4feaf59230475 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 6 Feb 2002 15:13:24 +0000 Subject: [PATCH] Fix html_options output to be XHTML compatible. --- libs/plugins/function.html_options.php | 2 +- plugins/function.html_options.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php index be956626..969de058 100644 --- a/libs/plugins/function.html_options.php +++ b/libs/plugins/function.html_options.php @@ -39,7 +39,7 @@ function smarty_function_html_options($params, &$smarty) $sel_check = $output[$i]; /* if more outputs than values, then check output against $selected */ if (in_array($sel_check, $selected)) - $html_result .= " selected"; + $html_result .= " selected=\"selected\""; $html_result .= ">".$output[$i]."\n"; } } diff --git a/plugins/function.html_options.php b/plugins/function.html_options.php index be956626..969de058 100644 --- a/plugins/function.html_options.php +++ b/plugins/function.html_options.php @@ -39,7 +39,7 @@ function smarty_function_html_options($params, &$smarty) $sel_check = $output[$i]; /* if more outputs than values, then check output against $selected */ if (in_array($sel_check, $selected)) - $html_result .= " selected"; + $html_result .= " selected=\"selected\""; $html_result .= ">".$output[$i]."\n"; } }