summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/config.php2
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;