Correction de conditions
This commit is contained in:
parent
2e68ca6881
commit
8341e41e99
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user