mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing associative array issue with normalizeList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3428 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4f53c301a8
commit
eff03b1dea
1 changed files with 3 additions and 1 deletions
|
@ -496,7 +496,9 @@
|
|||
if ($trim) {
|
||||
$list = array_map('trim', $list);
|
||||
}
|
||||
if ($assoc) {
|
||||
return normalizeList($list);
|
||||
}
|
||||
} elseif (is_array($list)) {
|
||||
$keys = array_keys($list);
|
||||
$count = count($keys);
|
||||
|
|
Loading…
Reference in a new issue