From 7f549e60f2085486229ad1ee29b84d5c4ea5d77e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Aug 2013 12:02:33 +0200 Subject: [PATCH] Fix: Bad selection of years into graphics --- htdocs/compta/bank/annuel.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index a6ac569d5d1..ac857172470 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -282,12 +282,7 @@ print ""; // 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)