Skip to content
Snippets Groups Projects
Commit 97908012 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

First check whether it is the default config before touchign

parent 13b18aaf
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ class Config { ...@@ -138,7 +138,7 @@ class Config {
// Include file and merge config // Include file and merge config
foreach ($configFiles as $file) { 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 // Writing to the main config might not be possible, e.g. if the wrong
// permissions are set (likely on a new installation) // permissions are set (likely on a new installation)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment