mirror of
https://github.com/nextcloud/server.git
synced 2026-03-07 07:50:57 -05:00
Merge pull request #48426 from nextcloud/jtr/fix-45671
This commit is contained in:
commit
4bfa30620d
1 changed files with 2 additions and 1 deletions
|
|
@ -186,7 +186,8 @@ class Config {
|
|||
@opcache_invalidate($file, false);
|
||||
}
|
||||
|
||||
$filePointer = @fopen($file, 'r');
|
||||
// suppressor doesn't work here at boot time since it'll go via our onError custom error handler
|
||||
$filePointer = file_exists($file) ? @fopen($file, 'r') : false;
|
||||
if ($filePointer === false) {
|
||||
// e.g. wrong permissions are set
|
||||
if ($file === $this->configFilePath) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue