diff --git a/library/Scores/Ciblage.php b/library/Scores/Ciblage.php index 39baf95f..ef0e7b5d 100644 --- a/library/Scores/Ciblage.php +++ b/library/Scores/Ciblage.php @@ -37,7 +37,7 @@ Class Ciblage $this->$key($valeur); } } else { - if($valeur != 'tous') + if($valeur != 'tous' and $valeur != "") $this->$key($valeur); } } @@ -105,11 +105,12 @@ Class Ciblage $i++; } } + echo $this->alpha; } protected function setAlpha($name, $valeur) { - $or = array('adr_cp', 'adr_dep', 'bilType'); + $or = array('bilType'); $and = array('ape_entrep', 'ape_etab', 'age_entrep', 'age_etab', 'NaceEntrep', 'NaceEtab'); if(in_array($name, $or)) { @@ -138,7 +139,7 @@ Class Ciblage } protected function adr_cp($valeur) { - $this->setAlpha('adr_cp', $valeur); + $this->setFilter('adr_cp', $valeur); } protected function adr_dep($valeur) {