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";