From e02282fbd109bcd83f67d52f7fe3c86ec24c37c0 Mon Sep 17 00:00:00 2001 From: realkoyu Date: Thu, 23 Jan 2014 00:21:14 +0800 Subject: [PATCH] Fixing a bug for loading config from local.xml The existing logic has a problem if the depth of the xml path is more than five, for example, try old cache node in local.xml. Fixed with a key check. By the way, how to add memcache support for magento2? --- lib/Magento/App/Config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Magento/App/Config.php b/lib/Magento/App/Config.php index 0cfc5010902f1..0d454d143aa59 100644 --- a/lib/Magento/App/Config.php +++ b/lib/Magento/App/Config.php @@ -79,6 +79,9 @@ protected function _parseParams(array $input) foreach ($value as $subKey => $node) { $build[$key . $separator . $subKey] = $node; } + if(array_key_exists($key, $build)){ + unset($build[$key]); + } } else { $build[$key] = null; }