diff --git a/library/WsScore/Interne/v0.3/Interne.php b/library/WsScore/Interne/v0.3/Interne.php index de54fe01..7e659ff8 100644 --- a/library/WsScore/Interne/v0.3/Interne.php +++ b/library/WsScore/Interne/v0.3/Interne.php @@ -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 n°$idAnn ($siret)",__LINE__,__FILE__, __FUNCTION__, __CLASS__); $error->errnum = 0;