Correction détection source et message d'erreur

This commit is contained in:
Michael RICOIS 2011-03-24 08:53:05 +00:00
parent b1702aa4c9
commit 14d8a253d7

View File

@ -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";
}