Merge pull request #7534 from atm-gauthier/FIX_invalid_foreach

FIX : invalid foreach protection
This commit is contained in:
Laurent Destailleur 2017-10-02 11:21:40 +02:00 committed by GitHub
commit d021288ec3

View File

@ -399,12 +399,14 @@ class User extends CommonObject
} }
} }
// Sort by key, so _noquery_ is last // Sort by key, so _noquery_ is last
foreach($this->default_values as $a => $b) if(!empty($this->default_values)) {
{ foreach($this->default_values as $a => $b)
foreach($b as $c => $d) {
{ foreach($b as $c => $d)
krsort($this->default_values[$a][$c]); {
} krsort($this->default_values[$a][$c]);
}
}
} }
$this->db->free($resql); $this->db->free($resql);
} }