diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index e9af3ca3b36..7da04fc5312 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -1,6 +1,7 @@ - * Copyright (C) 2003 Jean-Louis Bergamo + * Copyright (C) 2003 Jean-Louis Bergamo + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -550,8 +551,8 @@ function print_date_select($set_time='') $strmonth[11] = "Novembre"; $strmonth[12] = "Décembre"; - $smonth = 1; - $sday = 1; + $smonth = 1; $endmonth = 12; + $sday = 1; $endday = 31; $cday = date("d", $set_time); $cmonth = date("n", $set_time); @@ -559,11 +560,11 @@ function print_date_select($set_time='') print ""; - for ($month = $smonth ; $month < $smonth + 12 ; $month++) + for ($month = $smonth ; $month <= $endmonth ; $month++) { if ($month == $cmonth) { - print "