Fix: Page blanche sur graphe.

This commit is contained in:
Laurent Destailleur 2007-12-08 13:39:10 +00:00
parent 7a588e357e
commit 5280c7f549

View File

@ -260,6 +260,7 @@ if ($_GET["account"] || $_GET["ref"])
$now = time(); $now = time();
$day = dolibarr_mktime(12,0,0,1,1,$year); $day = dolibarr_mktime(12,0,0,1,1,$year);
$i = 0; $i = 0;
$xyear = $year;
while ($xyear == $year) while ($xyear == $year)
{ {
$textdate = strftime("%Y%m%d",$day); $textdate = strftime("%Y%m%d",$day);
@ -283,7 +284,7 @@ if ($_GET["account"] || $_GET["ref"])
$day += 86400; $day += 86400;
$i++; $i++;
} }
// Fabrication tableau 2 // Fabrication tableau 2
$file= $conf->banque->dir_temp."/balance.$account.$year.png"; $file= $conf->banque->dir_temp."/balance.$account.$year.png";
$title=$langs->transnoentities("Balance").' '.$langs->transnoentities("Year").': '.$year; $title=$langs->transnoentities("Balance").' '.$langs->transnoentities("Year").': '.$year;