mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	cleaned up typecasting
This commit is contained in:
		| @@ -101,7 +101,7 @@ function smarty_function_html_checkboxes($params, &$smarty) | ||||
|     settype($selected, 'array'); | ||||
|     $_html_result = array(); | ||||
|  | ||||
|     if (is_array($options)) { | ||||
|     if (isset($options)) { | ||||
|  | ||||
|         foreach ($options as $_key=>$_val) | ||||
|             $_html_result[] = smarty_function_html_checkboxes_output($name, $_key, $_val, $selected, $extra, $separator, $labels); | ||||
|   | ||||
| @@ -103,14 +103,14 @@ function smarty_function_html_radios($params, &$smarty) | ||||
|  | ||||
|     $_html_result = array(); | ||||
|  | ||||
|     if (isset($options) && is_array($options)) { | ||||
|     if (isset($options))) { | ||||
|  | ||||
|         foreach ((array)$options as $_key=>$_val) | ||||
|         foreach ($options as $_key=>$_val) | ||||
|             $_html_result[] = smarty_function_html_radios_output($name, $_key, $_val, $selected, $extra, $separator, $labels); | ||||
|  | ||||
|     } else { | ||||
|  | ||||
|         foreach ((array)$values as $_i=>$_key) { | ||||
|         foreach ($values as $_i=>$_key) { | ||||
|             $_val = isset($output[$_i]) ? $output[$_i] : ''; | ||||
|             $_html_result[] = smarty_function_html_radios_output($name, $_key, $_val, $selected, $extra, $separator, $labels); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user