Config::set(): fix setting value in inexisting section
This commit is contained in:
parent
8e5b0b0b2c
commit
97f91156de
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ Class Config {
|
|||
}
|
||||
for ($i=0; $i < count($exploded_key) - 1; $i++) {
|
||||
$k = $exploded_key[$i];
|
||||
if (!array_key_exists($k, $config))
|
||||
if (!array_key_exists($k, $parent))
|
||||
$parent[$k] = array();
|
||||
$parent = &$parent[$k];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue