Skip to content

Commit

Permalink
extend vars recursively, #158
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Nov 15, 2016
1 parent 74bbb1e commit 5c20d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c20d4c

Please sign in to comment.