diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-03 16:37:04 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-03 16:37:04 +0100 |
commit | 9790801268e4afee5277870993fb190431c5b706 (patch) | |
tree | c7eb84cf788d21e8a09a23a3eed8e918123284c9 | |
parent | 13b18aafccaa98137a390a64c094be77a98ba9ee (diff) | |
download | nextcloud-server-9790801268e4afee5277870993fb190431c5b706.tar.gz nextcloud-server-9790801268e4afee5277870993fb190431c5b706.zip |
First check whether it is the default config before touchign
Potentially fixes https://github.com/owncloud/core/issues/11678
-rw-r--r-- | lib/private/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/config.php b/lib/private/config.php index 7bf3863e2a6..f0548442ab5 100644 --- a/lib/private/config.php +++ b/lib/private/config.php @@ -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; |