modification d'un bug de condition !empty() = enlever la condition Non = 0

This commit is contained in:
Damien LASSERRE 2012-01-17 08:15:18 +00:00
parent 07b769bfc6
commit 73b0249a5a

View File

@ -17,10 +17,11 @@ Class Ciblage
if(!empty($structure)) {
foreach($structure as $key => $valeur)
{
if (method_exists($this, $key) and !empty($valeur)) {
if (method_exists($this, $key)) {
if(is_array($valeur)) {
if($valeur[0] != "" and $valeur[0] != 'tous')
if($valeur[0] != "" and $valeur[0] != 'tous'){
$this->$key($valeur);
}
} else {
if($valeur != 'tous')
$this->$key($valeur);