diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index eba84ce17c4..18ae5521606 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -611,7 +611,7 @@ class Propal extends CommonObject $sql.= " SET fk_projet=".$this->projetidp; $sql.= " WHERE ref='".$this->ref."'"; $sql.= " AND entity = ".$conf->entity; - + $result=$this->db->query($sql); } @@ -622,7 +622,7 @@ class Propal extends CommonObject $sql.= " SET fk_adresse_livraison = ".$this->adresse_livraison_id; $sql.= " WHERE ref = '".$this->ref."'"; $sql.= " AND entity = ".$conf->entity; - + $result=$this->db->query($sql); } diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index d13ce09395f..7255ff6e20b 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -103,7 +103,7 @@ class Societe extends CommonObject var $commercial_id; //Id du commercial affecte var $import_key; - + /** * \brief Constructeur de la classe @@ -614,7 +614,7 @@ class Societe extends CommonObject $this->price_level = $obj->price_level; $this->import_key = $obj->import_key; - + $result = 1; } else @@ -628,8 +628,7 @@ class Societe extends CommonObject } else { - dol_syslog('Erreur Societe::Fetch echec sql='.$sql); - dol_syslog('Erreur Societe::Fetch '.$this->db->error()); + dol_syslog('Erreur Societe::Fetch '.$this->db->error(), LOG_ERR); $this->error=$this->db->error(); $result = -3; }