Fix: Link to check SIRET not visible if SIRET not defined

This commit is contained in:
Laurent Destailleur 2010-02-20 11:22:02 +00:00
parent e7529532f3
commit f1af02f79e

View File

@ -557,7 +557,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
else else
{ {
/* /*
* Affichage des parametres * Show parameters
*/ */
if ($message) print $message.'<br>'; if ($message) print $message.'<br>';
@ -689,7 +689,7 @@ else
if ($langs->transcountry("ProfId1",$code_pays) != '-') if ($langs->transcountry("ProfId1",$code_pays) != '-')
{ {
print $conf->global->MAIN_INFO_SIREN; print $conf->global->MAIN_INFO_SIREN;
if ($code_pays == 'FR') print ' &nbsp; <a href="http://avis-situation-sirene.insee.fr/avisitu/jsp/avis.jsp" target="_blank">'.$langs->trans("Check").'</a>'; if ($conf->global->MAIN_INFO_SIREN && $code_pays == 'FR') print ' &nbsp; <a href="http://avis-situation-sirene.insee.fr/avisitu/jsp/avis.jsp" target="_blank">'.$langs->trans("Check").'</a>';
} }
print '</td></tr>'; print '</td></tr>';
} }