From a74210f3d854674fcbbfa77e969b835eb4510e09 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 6 Apr 2006 08:10:14 +0000 Subject: [PATCH] Modif erreur --- htdocs/telephonie/lignetel.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/lignetel.class.php b/htdocs/telephonie/lignetel.class.php index 0db759b4e82..6953f54cb75 100644 --- a/htdocs/telephonie/lignetel.class.php +++ b/htdocs/telephonie/lignetel.class.php @@ -571,7 +571,12 @@ class LigneTel { $sql .= " (tms, fk_ligne, fk_user, statut, comment,fk_fournisseur) "; $sql .= " VALUES (now(), $this->id, $user->id, $statut, '$commentaire',$this->fournisseur_id)"; - $this->db->query($sql); + if (!$this->db->query($sql)) + { + dolibarr_syslog("LigneTel::set_statut Error -6"); + dolibarr_syslog($this->db->error()); + dolibarr_syslog($sql); + } }