mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Empty YAML config causes invalid argument error
This commit is contained in:
parent
745faebd81
commit
8673ac15bc
@ -652,8 +652,10 @@ class SS_ConfigManifest {
|
||||
* @return void
|
||||
*/
|
||||
public function mergeInYamlFragment(&$into, $fragment) {
|
||||
foreach ($fragment as $k => $v) {
|
||||
Config::merge_high_into_low($into[$k], $v);
|
||||
if ($fragment) {
|
||||
foreach ($fragment as $k => $v) {
|
||||
Config::merge_high_into_low($into[$k], $v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
Name: emptyconfig
|
||||
---
|
Loading…
Reference in New Issue
Block a user