]> source.dussan.org Git - nextcloud-server.git/commitdiff
First check whether it is the default config before touchign
authorLukas Reschke <lukas@owncloud.com>
Mon, 3 Nov 2014 15:37:04 +0000 (16:37 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 3 Nov 2014 15:37:04 +0000 (16:37 +0100)
Potentially fixes https://github.com/owncloud/core/issues/11678

lib/private/config.php

index 7bf3863e2a6d035442411508ef7de0fc98d06d69..f0548442ab55200236b2297c33a7bb6989152971 100644 (file)
@@ -138,7 +138,7 @@ class Config {
 
                // Include file and merge config
                foreach ($configFiles as $file) {
-                       if(!@touch($file) && $file === $this->configFilePath) {
+                       if($file === $this->configFilePath && !@touch($file)) {
                                // Writing to the main config might not be possible, e.g. if the wrong
                                // permissions are set (likely on a new installation)
                                continue;