From 4fd928d73d02155fb5d8efc6150863cf8b1f9283 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Sep 2005 18:35:39 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20G=E8re=20correctement=20les=20config=20P?= =?UTF-8?q?HP=20avec=20magic=5Fquotes=5Fgpc=20=3D=20On?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/index.php | 52 ++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index cbcf5559245..54a6079b4ad 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -342,41 +342,53 @@ else print ''; // ProfId1 - $var=!$var; - print ''.$langs->transcountry("ProfId1",$code_pays).''; if ($langs->transcountry("ProfId1",$code_pays) != '-') { - print $conf->global->MAIN_INFO_SIREN; + $var=!$var; + print ''.$langs->transcountry("ProfId1",$code_pays).''; + if ($langs->transcountry("ProfId1",$code_pays) != '-') + { + print $conf->global->MAIN_INFO_SIREN; + } + print ''; } - print ''; - + // ProfId2 - $var=!$var; - print ''.$langs->transcountry("ProfId2",$code_pays).''; if ($langs->transcountry("ProfId2",$code_pays) != '-') { - print $conf->global->MAIN_INFO_SIRET; + $var=!$var; + print ''.$langs->transcountry("ProfId2",$code_pays).''; + if ($langs->transcountry("ProfId2",$code_pays) != '-') + { + print $conf->global->MAIN_INFO_SIRET; + } + print ''; } - print ''; - + // ProfId3 - $var=!$var; - print ''.$langs->transcountry("ProfId3",$code_pays).''; if ($langs->transcountry("ProfId3",$code_pays) != '-') { - print $conf->global->MAIN_INFO_APE; + $var=!$var; + print ''.$langs->transcountry("ProfId3",$code_pays).''; + if ($langs->transcountry("ProfId3",$code_pays) != '-') + { + print $conf->global->MAIN_INFO_APE; + } + print ''; } - print ''; - + // ProfId4 - $var=!$var; - print ''.$langs->transcountry("ProfId4",$code_pays).''; if ($langs->transcountry("ProfId4",$code_pays) != '-') { - print $conf->global->MAIN_INFO_RCS; + $var=!$var; + print ''.$langs->transcountry("ProfId4",$code_pays).''; + if ($langs->transcountry("ProfId4",$code_pays) != '-') + { + print $conf->global->MAIN_INFO_RCS; + } + print ''; } - print ''; - + // TVA Intracommunautaire $var=!$var; print ''.$langs->trans("TVAIntra").'' . $conf->global->MAIN_INFO_TVAINTRA . '';