diff --git a/batch/enrichissement.php b/batch/enrichissement.php index 8475db95..f2e76250 100644 --- a/batch/enrichissement.php +++ b/batch/enrichissement.php @@ -576,7 +576,6 @@ function dateFermetureEtData($siren, $nic, $values = false) { $iDb = new WDB(); $ret = $iDb->select('insee.insee_even', 'insEVE, insDATEVE', 'insSIREN='.$siren.' AND insNIC='.$nic." AND insEVE IN('FF','OF','400','410','420','425','430','435') ORDER BY insDATEVE DESC LIMIT 1", false, MYSQL_ASSOC); - if (mysql_errno()>0) die( 'Erreur B2 '.mysql_errno().' : '.mysql_error() ); if (count($ret)==0) { $siret = $siren.$nic; $ret = $iDb->select('insee.insee_even', 'insEVE, insDATEVE', "insSIRETPS=$siret AND insEVE IN('510','530') ORDER BY insDATEVE DESC LIMIT 1", false, MYSQL_ASSOC);