From 233711da8c6360d71a587dcc1bb4dc0bb755c83c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 18 Dec 2006 13:45:52 +0000 Subject: [PATCH] Bugfix remplissage des blancs --- scripts/cron/stock-graph.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/cron/stock-graph.php b/scripts/cron/stock-graph.php index e70e2735476..2d5d364ff02 100644 --- a/scripts/cron/stock-graph.php +++ b/scripts/cron/stock-graph.php @@ -104,6 +104,19 @@ if ($resql) $i = 0; while ($row = $db->fetch_row($resql)) { + if ($last_day > 0) + { + for ($j = $last_day + 1 ; $j < $row[0] ; $j++) + { + foreach ($entrepots as $key => $ent) + { + $values[$key][$j] = $values[$key][$last_day]; + } + $values[0][$i] = $values[0][$last_day]; + } + } + $last_day = $row[0]; + $max_day = $row[0]; $values[$row[2]][$row[0]] = $row[1]; $values[0][$row[0]] += $row[1];