summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-11-03 21:20:42 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-11-03 21:20:42 +0100
commit7f1d97479698a6794adc8c83b18bdefd5e30bf35 (patch)
treea0433a4824252f16a3420c57cbc7c745c1dc77cb
parentd2276215a475062c781f57d80f912f421f4b69fe (diff)
parent9790801268e4afee5277870993fb190431c5b706 (diff)
downloadnextcloud-server-7f1d97479698a6794adc8c83b18bdefd5e30bf35.tar.gz
nextcloud-server-7f1d97479698a6794adc8c83b18bdefd5e30bf35.zip
Merge pull request #11924 from owncloud/firstCheckIfItIsDefaultConfig
First check whether it is the default config before touching
-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;