aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-09-27 17:28:14 -0400
committerGitHub <noreply@github.com>2024-09-27 17:28:14 -0400
commitce51cecb445f22a7689a7ad6fadd619ae22b9883 (patch)
treeb13f780530c029a02812bc88fa5d1da672715fca /lib
parent341b31b1943943c4cb8cf0e48a5e6eb444949526 (diff)
downloadnextcloud-server-ce51cecb445f22a7689a7ad6fadd619ae22b9883.tar.gz
nextcloud-server-ce51cecb445f22a7689a7ad6fadd619ae22b9883.zip
fix(config): Suppress error at install timejtr/fix-45671
Signed-off-by: Josh <josh.t.richards@gmail.com>
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) {