cvs: smarty /libs/plugins function.html_options.php
| From: | Messju Mohr | Date: | Tue, 18 Mar 2003 21:04:13 +0000 |
| Subject: | cvs: smarty /libs/plugins function.html_options.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-474@lists.php.net to get a copy of this message | ||
messju Tue Mar 18 16:04:13 2003 EDT
Modified files:
/smarty/libs/plugins function.html_options.php
Log:
fixed label for optgroup in html_options
Index: smarty/libs/plugins/function.html_options.php
diff -u smarty/libs/plugins/function.html_options.php:1.14
smarty/libs/plugins/function.html_options.php:1.15
--- smarty/libs/plugins/function.html_options.php:1.14 Tue Mar 18 04:17:51 2003
+++ smarty/libs/plugins/function.html_options.php Tue Mar 18 16:04:13 2003
@@ -89,7 +89,7 @@
}
function smarty_function_html_options_optgroup($key, $values, $selected) {
- $optgroup_html = '<optgroup label="' .
smarty_function_escape_special_chars($value) . '">' . "\n";
+ $optgroup_html = '<optgroup label="' .
smarty_function_escape_special_chars($key) . '">' . "\n";
foreach ($values as $key => $value) {
$optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected);
}