MINOR Empty YAML config causes invalid argument error

This commit is contained in:
Daniel Hensby 2015-01-08 18:26:04 +00:00
parent 745faebd81
commit 8673ac15bc
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66
3 changed files with 7 additions and 2 deletions

View File

@ -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);
}
}
}

View File

@ -0,0 +1,3 @@
---
Name: emptyconfig
---