Merge pull request #13699 from owncloud/check-if-file-exists
Use `file_exists` to verify that config file exists
This commit is contained in:
commit
4d90fd933f
|
@ -166,7 +166,9 @@ class Config {
|
||||||
// Include file and merge config
|
// Include file and merge config
|
||||||
foreach ($configFiles as $file) {
|
foreach ($configFiles as $file) {
|
||||||
$filePointer = @fopen($file, 'r');
|
$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
|
// Opening 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;
|
||||||
|
|
Loading…
Reference in New Issue