Merge pull request #5395 from dhensby/pulls/3.3/empty-manifest-fix

MINOR Empty YAML config causes invalid argument error
This commit is contained in:
Damian Mooyman 2016-05-04 10:48:28 +12:00
commit 5925b65547
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
---