mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing Set::merge, broken in previous optimizations
This commit is contained in:
parent
6bd735955d
commit
75bfbe0e37
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Set {
|
|||
$r = (array)current($args);
|
||||
while (($arg = next($args)) !== false) {
|
||||
foreach ((array)$arg as $key => $val) {
|
||||
if (!empty($r[$key]) && is_array($r[$key])) {
|
||||
if (!empty($r[$key]) && is_array($r[$key]) && is_array($val)) {
|
||||
$r[$key] = Set::merge($r[$key], $val);
|
||||
} elseif (is_int($key)) {
|
||||
$r[] = $val;
|
||||
|
|
Loading…
Reference in a new issue