Suppression die
This commit is contained in:
parent
24b194251d
commit
21c7ddff17
@ -576,7 +576,6 @@ function dateFermetureEtData($siren, $nic, $values = false)
|
|||||||
{
|
{
|
||||||
$iDb = new WDB();
|
$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);
|
$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) {
|
if (count($ret)==0) {
|
||||||
$siret = $siren.$nic;
|
$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);
|
$ret = $iDb->select('insee.insee_even', 'insEVE, insDATEVE', "insSIRETPS=$siret AND insEVE IN('510','530') ORDER BY insDATEVE DESC LIMIT 1", false, MYSQL_ASSOC);
|
||||||
|
Loading…
Reference in New Issue
Block a user