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:22:47 +0000 |
commit | 82319d41fddd533fd827ee1f762dd976fec3e3a2 (patch) | |
tree | f887132667f9277e2d8b62726516b4c71e423479 | |
parent | a891bc07844a45824d0438ff735371de70869a27 (diff) | |
download | nextcloud-server-82319d41fddd533fd827ee1f762dd976fec3e3a2.tar.gz nextcloud-server-82319d41fddd533fd827ee1f762dd976fec3e3a2.zip |
fix(config): Suppress error at install timebackport/48426/stable29
Signed-off-by: Josh <josh.t.richards@gmail.com>
-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 d69a9837e75..e48558068b4 100644 --- a/lib/private/Config.php +++ b/lib/private/Config.php @@ -217,7 +217,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) { |