From 87a8716e9836e40885d59f687de9a9a125898dde Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 10 Dec 2006 20:02:44 +0000 Subject: [PATCH] Bugfix sur la reinit des tableaux de donnees --- scripts/cron/fournisseur-graph.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/cron/fournisseur-graph.php b/scripts/cron/fournisseur-graph.php index 0e0d20e17d3..4a0fa5276cc 100644 --- a/scripts/cron/fournisseur-graph.php +++ b/scripts/cron/fournisseur-graph.php @@ -65,9 +65,11 @@ if ($resql) while ($row = $db->fetch_row($resql)) { $fdir = $dir.'/'.get_exdir($row[0],3); + if ($verbose) print $fdir."\n"; create_exdir($fdir); + $fournisseurs[$row[0]] = $fdir; } $db->free($resql); @@ -82,7 +84,8 @@ else foreach ($fournisseurs as $id => $fdir) { - $values = array(); + $values_gen = array(); + $values_ach = array(); $legends = array(); $sql = "SELECT year, ca_genere, ca_achat"; $sql .= " FROM ".MAIN_DB_PREFIX."fournisseur_ca";