Correction détection source et message d'erreur
This commit is contained in:
parent
b1702aa4c9
commit
14d8a253d7
@ -33,7 +33,7 @@ function supprAnnonceCollecte($idan, $siret = ''){
|
||||
|
||||
function supprAnnonce($source, $idan, $siret) {
|
||||
global $client;
|
||||
$sourceNum = null;
|
||||
$sourceNum = false;
|
||||
$source = strtoupper($source);
|
||||
if (in_array($source, array('BODA', 'BODB', 'BODC'))){
|
||||
$sourceNum = 1;
|
||||
@ -47,7 +47,7 @@ function supprAnnonce($source, $idan, $siret) {
|
||||
$sourceNum = 0;
|
||||
}
|
||||
|
||||
if ($sourceNum == null) {
|
||||
if ($sourceNum === false) {
|
||||
return "Source inconnu";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user