diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-01 18:19:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 18:19:51 +0200 |
commit | 4bfa30620df1b3aef99beab5fd69d296108f3d2e (patch) | |
tree | e1e3ea75848244165ce6da1abca71977ea9c3862 /lib | |
parent | 26762172f5697febc7971a0bf5ac83d7a4c3cf35 (diff) | |
parent | ce51cecb445f22a7689a7ad6fadd619ae22b9883 (diff) | |
download | nextcloud-server-4bfa30620df1b3aef99beab5fd69d296108f3d2e.tar.gz nextcloud-server-4bfa30620df1b3aef99beab5fd69d296108f3d2e.zip |
Merge pull request #48426 from nextcloud/jtr/fix-45671
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Config.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Config.php b/lib/private/Config.php index d9b16832698..0e8d07955af 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -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) { |