From f2d4c023e396593b9ee22ba31f211e4b3c4ad24b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 18 Dec 2006 13:46:41 +0000 Subject: [PATCH] Bugfix index des tableaux --- scripts/cron/stock-graph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cron/stock-graph.php b/scripts/cron/stock-graph.php index 2d5d364ff02..07f3cae148d 100644 --- a/scripts/cron/stock-graph.php +++ b/scripts/cron/stock-graph.php @@ -102,6 +102,7 @@ $resql = $db->query($sql) ; if ($resql) { $i = 0; + $last_day = 0; while ($row = $db->fetch_row($resql)) { if ($last_day > 0) @@ -112,7 +113,7 @@ if ($resql) { $values[$key][$j] = $values[$key][$last_day]; } - $values[0][$i] = $values[0][$last_day]; + $values[0][$j] = $values[0][$last_day]; } } $last_day = $row[0];