diff --git a/base.php b/base.php index 1d35d441..ebd63eed 100644 --- a/base.php +++ b/base.php @@ -625,7 +625,7 @@ function extend($key,$src,$keep=FALSE) { $ref=&$this->ref($key); if (!$ref) $ref=[]; - $out=$ref+(is_string($src)?$this->hive[$src]:$src); + $out=array_replace_recursive(is_string($src)?$this->hive[$src]:$src,$ref); if ($keep) $ref=$out; return $out;