From c0b320176be53431c7edca90b324e2ac3da0d528 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 17 Aug 2010 00:02:33 +0000 Subject: [PATCH] Fix: Bad coding --- htdocs/societe/class/societe.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {