From 9790801268e4afee5277870993fb190431c5b706 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 3 Nov 2014 16:37:04 +0100 Subject: [PATCH] First check whether it is the default config before touchign Potentially fixes https://github.com/owncloud/core/issues/11678 --- lib/private/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5