improved Util::merge() functionality

This commit is contained in:
Taras Machyshyn
2015-02-02 12:10:04 +02:00
parent 5a16ee0493
commit bdb1f2f3b6
+1 -1
View File
@@ -159,7 +159,7 @@ class Util
if ($appendKey !== false) {
unset($newValue[$appendKey]);
$newValue = array_merge($currentArray[$newName], $newValue);
} else if (!static::isSingleArray($newValue)) {
} else if (!static::isSingleArray($newValue) || !static::isSingleArray($currentArray[$newName])) {
$newValue = static::merge($currentArray[$newName], $newValue);
}