Nettoyage du code
This commit is contained in:
parent
f61ee9fe7c
commit
6a509c0832
@ -73,14 +73,11 @@ class GraphLignesCommandesWeek extends GraphBar {
|
|||||||
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user