cvs: smarty /libs/plugins function.html_select_date.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1077492548@cvsserver>
messju		Sun Feb 22 18:29:08 2004 EDT

  Modified files:              
    /smarty/libs/plugins	function.html_select_date.php 
  Log:
  removed notice on html_select_date with the month_empty-attribute
  
  
http://cvs.php.net/diff.php/smarty/libs/plugins/function.html_select_date.php?r1=1.22&r2=1.23&ty=u
Index: smarty/libs/plugins/function.html_select_date.php
diff -u smarty/libs/plugins/function.html_select_date.php:1.22 smarty/libs/plugins/function.html_select_date.php:1.23
--- smarty/libs/plugins/function.html_select_date.php:1.22	Fri Feb 13 18:38:08 2004
+++ smarty/libs/plugins/function.html_select_date.php	Sun Feb 22 18:29:08 2004
@@ -183,10 +183,9 @@
 
         $month_result .= smarty_function_html_options(array('output'     => $month_names,
                                                             'values'     => $month_values,
-                                                            'selected'   => $month_values[(int)$time[1]],
+                                                            'selected'   => $a=$time[1] ? strftime($month_value_format, mktime(0, 0, 0, (int)$time[1], 1, 2000)) : '',
                                                             'print_result' => false),
                                                       $smarty);
-
         $month_result .= '</select>';
     }
 

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.