Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaDafinser <martin.keckeis@thyssenkrupp.com>2015-09-02 14:07:09 +0300
committerThaDafinser <martin.keckeis@thyssenkrupp.com>2015-09-02 14:07:09 +0300
commit075e0a3f2e0d41e45a778c6d6afe7122acfdf972 (patch)
treed0b84931bf0283cf5475a680a3d3fd9d585f80db /core/Config
parentb3e8537b4ba8ed1182fc7b2e647ad768ea8a9260 (diff)
fixing some unlink and others
Diffstat (limited to 'core/Config')
-rw-r--r--core/Config/IniFileChain.php6
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])) {