Modif pour supprimer les stats 0

This commit is contained in:
Rodolphe Quiedeville 2005-05-10 13:39:26 +00:00
parent abf1bbf913
commit a97a3ba85b

View File

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