From 14d8a253d70fb2e0dd43cd7c4235621aae7e4647 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 24 Mar 2011 08:53:05 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20d=C3=A9tection=20source=20et=20mes?= =?UTF-8?q?sage=20d'erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/saisie/saisie_annonces.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/saisie/saisie_annonces.php b/includes/saisie/saisie_annonces.php index ab14b0530..8d2258d9c 100644 --- a/includes/saisie/saisie_annonces.php +++ b/includes/saisie/saisie_annonces.php @@ -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"; }