Correction de conditions

This commit is contained in:
Damien LASSERRE 2012-01-16 15:25:02 +00:00
parent 2e68ca6881
commit 8341e41e99

View File

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