Make always the first index begin at 0 for all list of criteres

This commit is contained in:
Michael RICOIS 2012-05-29 15:43:05 +00:00
parent 5e7a3e04a5
commit 2254b415cf

View File

@ -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();
}