Upgraded to latest version of Smarty 2.6.9

This commit is contained in:
thepurpleblob
2005-04-19 09:52:16 +00:00
parent f55a672eea
commit c38950b11b
49 changed files with 678 additions and 510 deletions
+5 -5
View File
@@ -9,9 +9,9 @@
/**
* Smarty {html_options} function plugin
*
* Type: function<br />
* Name: html_options<br />
* Input:<br />
* Type: function<br>
* Name: html_options<br>
* Input:<br>
* - name (optional) - string default "select"
* - values (required if no options supplied) - array
* - options (required if no values supplied) - associative array
@@ -72,14 +72,14 @@ function smarty_function_html_options($params, &$smarty)
$_html_result = '';
if (is_array($options)) {
if (isset($options)) {
foreach ($options as $_key=>$_val)
$_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected);
} else {
foreach ((array)$values as $_i=>$_key) {
foreach ($values as $_i=>$_key) {
$_val = isset($output[$_i]) ? $output[$_i] : '';
$_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected);
}