diff --git a/core/model/DataObject.php b/core/model/DataObject.php index b6db294d2..54760b917 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -1294,7 +1294,7 @@ class DataObject extends ViewableData implements DataObjectInterface,i18nEntityP if(!is_string($k) || is_numeric($k) || !is_string($v)) user_error("$class::\$db has a bad entry: " . var_export($k,true). " => " . var_export($v,true) . ". Each map key should be a property name, and the map value should be the property type.", E_USER_ERROR); } - $items = isset($items) ? array_merge($newItems, (array)$items) : $newItems; + $items = isset($items) ? array_merge((array)$items, $newItems) : $newItems; } }