mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-25 23:58:39 +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)) {
|
||||
$current[] = $value;
|
||||
} elseif (is_array($current) && is_array($value)) {
|
||||
$current += $value;
|
||||
$current = array_merge($current, $value);
|
||||
} elseif (is_scalar($current) && $current !== null) {
|
||||
$current = [$current, $value];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user