bug in html_options plugin
| From: | Szabo Dénes | Date: | Sun, 09 Mar 2003 18:32:35 +0000 |
| Subject: | bug in html_options plugin | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-927@lists.php.net to get a copy of this message | ||
Hi!
function smarty_function_html_options_optgroup($key, $values, $selected) {
$optgroup_html = '<optgroup label="' . htmlspecialchars($value) .
>>> Threre are no $value. This is $key.
'">' . "\n";
foreach ($values as $key => $value) {
$optgroup_html .=
smarty_function_html_options_optoutput($key, $value, $selected);
}
$optgroup_html .= "</optgroup>\n";
return $optgroup_html;
}