Bugfix index des tableaux

This commit is contained in:
Rodolphe Quiedeville 2006-12-18 13:46:41 +00:00
parent 233711da8c
commit f2d4c023e3

View File

@ -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];