Nettoyage du code

This commit is contained in:
Rodolphe Quiedeville 2005-02-09 14:09:58 +00:00
parent f61ee9fe7c
commit 6a509c0832

View File

@ -71,16 +71,13 @@ class GraphLignesCommandesWeek extends GraphBar {
if ($oldyear == 0) if ($oldyear == 0)
{ {
$oldyear = substr($row[0],0,4); $oldyear = substr($row[0],0,4);
} }
if ($oldyear == substr($row[0],0,4) && $j > 0 && substr($row[0],-2) <> ($labels[$j-1] +1 ) ) if ($oldyear == substr($row[0],0,4) && $j > 0 && substr($row[0],-2) <> ($labels[$j-1] +1 ) )
{ {
$datas[$j] = 0; $datas[$j] = 0;
$labels[$j] = $labels[$j-1] + 1; $labels[$j] = $labels[$j-1] + 1;
$j++; $j++;
} }
$datas[$j] = $row[1]; $datas[$j] = $row[1];
@ -100,5 +97,4 @@ class GraphLignesCommandesWeek extends GraphBar {
$this->GraphDraw($this->file, $datas, $labels); $this->GraphDraw($this->file, $datas, $labels);
} }
} }
?> ?>