Fix: Bad selection of years into graphics

This commit is contained in:
Laurent Destailleur 2013-08-27 12:02:33 +02:00
parent 657c4d6e90
commit 7f549e60f2

View File

@ -282,12 +282,7 @@ print "</table>";
// BUILDING GRAPHICS
$datetime = dol_now();
$year = dol_print_date($datetime, "%Y");
$month = dol_print_date($datetime, "%m");
$day = dol_print_date($datetime, "%d");
if (! empty($_GET["year"])) $year=sprintf("%04d",$_GET["year"]);
if (! empty($_GET["month"])) $month=sprintf("%02d",$_GET["month"]);
$year = $year_end;
$result=dol_mkdir($conf->banque->dir_temp);
if ($result < 0)