| @@ -242,11 +242,13 @@ | ||
| 242 | 242 |                      if (is_string($k) && !str_contains($k, '.') && DbConfig::exactKey($key)->exists() && DbConfig::key($key)->count() == 1) { | 
| 243 | 243 | // check that we aren't trying to set an array onto an existing value only setting | 
| 244 | 244 |                          throw new \Exception("Attempting to set array value to existing non-array value at the key '".$key."'"); | 
| 245 | -                    } else { | |
| 245 | + } | |
| 246 | +                    else { | |
| 246 | 247 | // we are not at the leaf yet, add this chunk to the key and recurse | 
| 247 | 248 | $this->set($key.'.'.$k, $v); | 
| 248 | 249 | } | 
| 249 | -                } else { | |
| 250 | + } | |
| 251 | +                else { | |
| 250 | 252 | // a leaf, recurse one last time | 
| 251 | 253 | $this->set($k, $v); | 
| 252 | 254 | } |