diff --git a/htdocs/telephonie/stats/graph/ca.class.php b/htdocs/telephonie/stats/graph/ca.class.php index 91c85d8da1a..73259a7da5f 100644 --- a/htdocs/telephonie/stats/graph/ca.class.php +++ b/htdocs/telephonie/stats/graph/ca.class.php @@ -22,8 +22,8 @@ require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/graph/brouzouf.class.php"); -class GraphCa extends GraphBrouzouf{ - +class GraphCa extends GraphBrouzouf +{ Function GraphCa($DB, $file) { @@ -39,7 +39,6 @@ class GraphCa extends GraphBrouzouf{ Function GraphDraw() { - $num = 0; $ligne = new LigneTel($this->db); if ($this->client == 0) @@ -60,8 +59,7 @@ class GraphCa extends GraphBrouzouf{ $sql .= " GROUP BY date ASC"; } - $result = $this->db->query($sql); - if ($result) + if ($this->db->query($sql)) { $num = $this->db->num_rows(); $i = 0;