summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-01-27 14:16:40 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-27 14:16:40 +0100
commit4d90fd933f47c71b4b9ff333b223f06822bc5340 (patch)
treeebe8b44a8b2470acde36975e89512999ce646174 /lib/private
parenta870dbe70b0951ebfaad0c56657bf518e4634d74 (diff)
parent17f2cfbb9c6edeeab3e29718209eb88946335d55 (diff)
downloadnextcloud-server-4d90fd933f47c71b4b9ff333b223f06822bc5340.tar.gz
nextcloud-server-4d90fd933f47c71b4b9ff333b223f06822bc5340.zip
Merge pull request #13699 from owncloud/check-if-file-exists
Use `file_exists` to verify that config file exists
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/config.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/config.php b/lib/private/config.php
index 586e8c20587..31e536221dd 100644
--- a/lib/private/config.php
+++ b/lib/private/config.php
@@ -166,7 +166,9 @@ class Config {
// Include file and merge config
foreach ($configFiles as $file) {
$filePointer = @fopen($file, 'r');
- if($file === $this->configFilePath && $filePointer === false) {
+ if($file === $this->configFilePath &&
+ $filePointer === false &&
+ @!file_exists($this->configFilePath)) {
// Opening the main config might not be possible, e.g. if the wrong
// permissions are set (likely on a new installation)
continue;