aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-10-01 18:19:51 +0200
committerGitHub <noreply@github.com>2024-10-01 18:19:51 +0200
commit4bfa30620df1b3aef99beab5fd69d296108f3d2e (patch)
treee1e3ea75848244165ce6da1abca71977ea9c3862 /lib
parent26762172f5697febc7971a0bf5ac83d7a4c3cf35 (diff)
parentce51cecb445f22a7689a7ad6fadd619ae22b9883 (diff)
downloadnextcloud-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.php3
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) {