diff --git a/htdocs/telephonie/facturetel.class.php b/htdocs/telephonie/facturetel.class.php index 955b09bebf5..c59766809a9 100644 --- a/htdocs/telephonie/facturetel.class.php +++ b/htdocs/telephonie/facturetel.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -58,7 +58,7 @@ class FactureTel { } else { - dolibarr_syslog("Erreur FactureTel::fetch() id=$id"); + dolibarr_syslog("FactureTel::Fetch() Error aucune facture avec cet id=$id", LOG_ERR); $result = -2; } @@ -67,8 +67,7 @@ class FactureTel { else { /* Erreur select SQL */ - dolibarr_syslog("Erreur FactureTel::fetch(), sql error"); - print $this->db->error(); + dolibarr_syslog("FactureTel::Fetch() Error SQL id=$id", LOG_ERR); $result = -1; } @@ -94,8 +93,9 @@ class FactureTel { } else { - print $this->db->error(); - print $sql ; + /* Erreur select SQL */ + dolibarr_syslog("FactureTel::affect_num_facture_compta() Error SQL id=$facid", LOG_ERR); + $result = -1; return 1; } }