Formatage

This commit is contained in:
Michael RICOIS 2011-12-29 13:53:41 +00:00
parent ec6611a0e7
commit 799d6c5e72

View File

@ -2890,19 +2890,19 @@ class Interne extends WsScore
{
case 0:
$idAnn=preg_replace('/^0\./','', ''.$idAnn)*1;
$table='annonces';
$table = 'annonces';
break;
case 1:
if ($idAnn<0){
$error->errnum = 1;
$error->errmsg = 'Code annonce Incorrect';
} else {
$strSql="AND siren=$siren";
$table='bodacc_detail';
$strSql = "AND siren=$siren";
$table = 'bodacc_detail';
}
break;
case 3:
$table='asso';
$table = 'asso';
break;
case 2:
case 4:
@ -2911,7 +2911,10 @@ class Interne extends WsScore
$error->errmsg = 'Cas non géré';
break;
}
if ($idAnn>0 && $iDb->update( $table, array('dateSuppr'=>date('YmdHis'),'idSuppr'=>$this->tabInfoUser['id']), "id=$idAnn $strSql", false))
if ($idAnn>0 && $iDb->update( $table, array(
'dateSuppr' => date('YmdHis'),
'idSuppr' => $this->tabInfoUser['id']),
"id=$idAnn $strSql", false))
{
debugLog('I',"Suppression de l'annonce en source $source$idAnn ($siret)",__LINE__,__FILE__, __FUNCTION__, __CLASS__);
$error->errnum = 0;