From aa25afbfaf4193849fafe6798a9338e8b577fbd1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 28 Mar 2005 12:43:42 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20forme=20juridique=20ou=20type=20non?= =?UTF-8?q?=20d=E9finie,=20on=20affiche=20un=20libell=E9=20vide.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/societe.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 1f6be5136d4..3049cc7d29b 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -450,11 +450,11 @@ class Societe { $this->tva_intra_code = substr($obj->tva_intra,0,2); $this->tva_intra_num = substr($obj->tva_intra,2); - $this->effectif = $obj->effectif; $this->effectif_id = $obj->effectif_id; + $this->effectif = $obj->effectif_id?$obj->effectif:''; $this->forme_juridique_code= $obj->forme_juridique_code; - $this->forme_juridique = $obj->forme_juridique; + $this->forme_juridique = $obj->forme_juridique_code?$obj->forme_juridique:''; $this->prefix_comm = $obj->prefix_comm;