diff options
author | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 14:07:09 +0300 |
---|---|---|
committer | ThaDafinser <martin.keckeis@thyssenkrupp.com> | 2015-09-02 14:07:09 +0300 |
commit | 075e0a3f2e0d41e45a778c6d6afe7122acfdf972 (patch) | |
tree | d0b84931bf0283cf5475a680a3d3fd9d585f80db /core/Config | |
parent | b3e8537b4ba8ed1182fc7b2e647ad768ea8a9260 (diff) |
fixing some unlink and others
Diffstat (limited to 'core/Config')
-rw-r--r-- | core/Config/IniFileChain.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Config/IniFileChain.php b/core/Config/IniFileChain.php index e8384a4f3a..c8e63f4fbe 100644 --- a/core/Config/IniFileChain.php +++ b/core/Config/IniFileChain.php @@ -141,7 +141,11 @@ class IniFileChain $configToWrite = array(); foreach ($this->mergedSettings as $sectionName => $changedSection) { - $existingMutableSection = @$existingMutableSettings[$sectionName] ?: array(); + if(isset($existingMutableSection[$sectionName])){ + $existingMutableSection = $existingMutableSettings[$sectionName]; + } else{ + $existingMutableSection = array(); + } // remove default values from both (they should not get written to local) if (isset($defaultSettings[$sectionName])) { |