mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 07:28:41 +00:00
Fix array set
This commit is contained in:
parent
bdb6ee06fb
commit
536906ed46
|
|
@ -100,7 +100,7 @@ class ArrayUtils
|
||||||
} elseif (is_array($current) && !is_array($value)) {
|
} elseif (is_array($current) && !is_array($value)) {
|
||||||
$current[] = $value;
|
$current[] = $value;
|
||||||
} elseif (is_array($current) && is_array($value)) {
|
} elseif (is_array($current) && is_array($value)) {
|
||||||
$current += $value;
|
$current = array_merge($current, $value);
|
||||||
} elseif (is_scalar($current) && $current !== null) {
|
} elseif (is_scalar($current) && $current !== null) {
|
||||||
$current = [$current, $value];
|
$current = [$current, $value];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user