Make always the first index begin at 0 for all list of criteres
This commit is contained in:
parent
5e7a3e04a5
commit
2254b415cf
@ -849,9 +849,13 @@ Les zones urbaines sensibles constituent un sous-ensemble de l'ensemble plus lar
|
||||
{
|
||||
if(key_exists($key, $this->ciblage)) {
|
||||
if ($ex) {
|
||||
unset($this->ciblage[$key]['ex'][$pos]);
|
||||
$critereValues = $this->ciblage[$key]['ex'];
|
||||
unset($critereValues[$pos]);
|
||||
$this->ciblage[$key]['ex'] = array_values($critereValues);
|
||||
} else {
|
||||
unset($this->ciblage[$key]['in'][$pos]);
|
||||
$critereValues = $this->ciblage[$key]['in'];
|
||||
unset($critereValues[$pos]);
|
||||
$this->ciblage[$key]['in'] = array_values($critereValues);
|
||||
}
|
||||
$this->setSession();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user