Index: branches/version-2/data/module/Smarty/libs/plugins/function.html_options.php
===================================================================
--- branches/version-2/data/module/Smarty/libs/plugins/function.html_options.php	(revision 15532)
+++ branches/version-2/data/module/Smarty/libs/plugins/function.html_options.php	(revision 17666)
@@ -31,5 +31,5 @@
 {
     require_once $smarty->_get_plugin_filepath('shared','escape_special_chars');
-    
+
     $name = null;
     $values = null;
@@ -37,7 +37,7 @@
     $selected = array();
     $output = null;
-    
+
     $extra = '';
-    
+
     foreach($params as $_key => $_val) {
         switch($_key) {
@@ -45,9 +45,9 @@
                 $$_key = (string)$_val;
                 break;
-            
+
             case 'options':
                 $$_key = (array)$_val;
                 break;
-                
+
             case 'values':
             case 'output':
@@ -58,5 +58,5 @@
                 $$_key = array_map('strval', array_values((array)$_val));
                 break;
-                
+
             default:
                 if(!is_array($_val)) {
@@ -75,10 +75,10 @@
 
     if (isset($options)) {
-        
+
         foreach ($options as $_key=>$_val)
             $_html_result .= smarty_function_html_options_optoutput($_key, $_val, $selected);
 
     } else {
-        
+
         foreach ($values as $_i=>$_key) {
             $_val = isset($output[$_i]) ? $output[$_i] : '';
@@ -101,5 +101,5 @@
             smarty_function_escape_special_chars($key) . '"';
         if (in_array((string)$key, $selected))
-            $_html_result .= ' selected="selected"';
+            $_html_result .= ' selected';
         $_html_result .= '>' . smarty_function_escape_special_chars($value) . '</option>' . "\n";
     } else {
