diff options
author | Josh <josh.t.richards@gmail.com> | 2024-09-27 17:28:14 -0400 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-01 16:24:11 +0000 |
commit | 60872a1c4ca3d4636bf99a066e7198fe2d59782d (patch) | |
tree | e3216694e18084acbcf9183e01c526236e2c373a /lib/private | |
parent | 8e093bd92f5fae2bb6e8a53a8242cbb80fd9513f (diff) | |
download | nextcloud-server-60872a1c4ca3d4636bf99a066e7198fe2d59782d.tar.gz nextcloud-server-60872a1c4ca3d4636bf99a066e7198fe2d59782d.zip |
fix(config): Suppress error at install timebackport/48426/stable30
Signed-off-by: Josh <josh.t.richards@gmail.com>
Diffstat (limited to 'lib/private')
-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 aa20f627edc..62b4aceaa12 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) { |