diff --git a/htdocs/telephonie/stats/graph/ca.class.php b/htdocs/telephonie/stats/graph/ca.class.php index d57191924e45fcc6264212dedafe70690617df2a..cf1e6118ae3c3007d08ab5a16314efdfb465d6b7 100644 --- a/htdocs/telephonie/stats/graph/ca.class.php +++ b/htdocs/telephonie/stats/graph/ca.class.php @@ -75,7 +75,7 @@ class GraphCa extends GraphBrouzouf { $num = $this->db->num_rows(); $i = 0; - $j = -1; + $labels = array(); $cf = array(); $cv = array(); diff --git a/htdocs/telephonie/stats/graph/comm.nbminutes.class.php b/htdocs/telephonie/stats/graph/comm.nbminutes.class.php index 1d8707df49fd2c73d7613116f025c527f2ac7b2f..7aabcda0a0e4d844c43157a8f3cd9a1b1c9e089d 100644 --- a/htdocs/telephonie/stats/graph/comm.nbminutes.class.php +++ b/htdocs/telephonie/stats/graph/comm.nbminutes.class.php @@ -99,7 +99,7 @@ class GraphCommNbMinutes extends GraphBar{ $row = $this->db->fetch_row(); $this->labels[$i] = substr($row[0],4,2) . '/'.substr($row[0],2,2); - $this->datas[$i] = $row[1]; + $this->datas[$i] = ceil($row[1] / 60); $i++; }