From 0b52f9af91c8e099d6a4433a937acf87ea3fa893 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 16 Mar 2005 16:41:16 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/stats/graph/ca.class.php | 2 +- htdocs/telephonie/stats/graph/comm.nbminutes.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/stats/graph/ca.class.php b/htdocs/telephonie/stats/graph/ca.class.php index d57191924e4..cf1e6118ae3 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 1d8707df49f..7aabcda0a0e 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++; }