correction export xml, fixed issue #0000327

This commit is contained in:
Michael RICOIS 2010-08-11 15:30:07 +00:00
parent d63a67706c
commit 90bcd96b76

View File

@ -6,13 +6,11 @@ require_once 'partenaires/classMMap.php';
require_once 'common/dates.php';
require_once 'scoresws/scoresws.php';
$mil = false; // ?
$etabs = scoresws_etablissements($siret, $siren, $idEntreprise);
if ($etabs === false) {
exit;
}
FB::log($etabs, 'etab');
$raisonSociale = $_SESSION['tabInfo']['entrep']['raisonSociale'];
?>
@ -131,6 +129,8 @@ function htmldecode($value){
}
$tabForExport = htmldecode($etabs);
//@TODO a tester
if (($siret*1)==0 || ($siren*1)<100){ $fileName = 'etablissements-'.$idEntreprise;
}else{ $fileName = 'etablissements-'.$siret; }
if(count($tabForExport)>0){
require_once 'export.php';