From a97a3ba85b3548c56ca9b171e6ee115539583be7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 10 May 2005 13:39:26 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20pour=20supprimer=20les=20stats=20=E0=20?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/ProcessGraphClients.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/ProcessGraphClients.class.php b/htdocs/telephonie/stats/ProcessGraphClients.class.php index 096085383ff..7ffd2e471fb 100644 --- a/htdocs/telephonie/stats/ProcessGraphClients.class.php +++ b/htdocs/telephonie/stats/ProcessGraphClients.class.php @@ -130,7 +130,11 @@ class ProcessGraphClients $sql .= ",'".ereg_replace(",",".",$graphgain->total_ca)."'"; $sql .= ",'".ereg_replace(",",".",$graphgain->total_cout)."'"; $sql .= ",'".ereg_replace(",",".",$marge)."')"; - $this->db->query($sql); + + if (($graphgain->total_ca * $graphgain->total_gain * $graphgain->total_cout) > 0) + { + $this->db->query($sql); + } $file = $img_root . $client."/graphappelsdureemoyenne.png";