diff --git a/core/manifest/ConfigManifest.php b/core/manifest/ConfigManifest.php index 22e6dd51e..af04ae9e9 100644 --- a/core/manifest/ConfigManifest.php +++ b/core/manifest/ConfigManifest.php @@ -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 (is_array($fragment) || ($fragment instanceof Traversable)) { + foreach ($fragment as $k => $v) { + Config::merge_high_into_low($into[$k], $v); + } } }