diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 23759aad614..3cf6eb47749 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1980,8 +1980,7 @@ class Societe extends CommonObject $sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie_fournisseur (fk_categorie, fk_societe) "; $sql.= " VALUES ('".$categorie_id."','".$this->id."');"; - if ($resql=$this->db->query($sql)) - return 0; + if ($resql=$this->db->query($sql)) return 0; } else {