From a6797ca58ade5db38cb764aa7de995fbbaa9d810 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 29 Jul 2004 13:02:23 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20nom=20de=20la=20societe=20quand=20le=20?= =?UTF-8?q?user=20est=20un=20contact=20ext=E9rieur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user/fiche.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 51b8d38c5aa..49993132e1d 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -291,9 +291,14 @@ else print ''.$yn[$fuser->admin].''; print "\n"; - print "".'Id Société'; - print ''.$fuser->societe_id.' '; - print "\n"; + if ($fuser->societe_id > 0) + { + $societe = new Societe($db); + $societe->fetch($fuser->societe_id); + print "".'Société'; + print ''.$societe->nom.' '; + print "\n"; + } print "".'Fiche contact'; print '';