Config: fix set() method
This commit is contained in:
parent
21b425e32b
commit
41fe069fe9
1 changed files with 3 additions and 3 deletions
|
@ -222,10 +222,10 @@ Class Config {
|
|||
for ($i=0; $i < count($exploded_key) - 1; $i++) {
|
||||
$k = $exploded_key[$i];
|
||||
if (!array_key_exists($k, $config))
|
||||
$config[$k] = array();
|
||||
$config = &$config[$k];
|
||||
$parent[$k] = array();
|
||||
$parent = &$parent[$k];
|
||||
}
|
||||
$config[array_pop($exploded_key)] = $value;
|
||||
$parent[array_pop($exploded_key)] = $value;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue