diff options
author | Josh <josh.t.richards@gmail.com> | 2024-09-27 17:28:14 -0400 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-10-02 08:10:12 +0200 |
commit | 36b2c15f63036ac597874ec4f1d18525a30112fe (patch) | |
tree | 71480bd7e7976c56af8c57718eb4172074c2cb23 | |
parent | 5af3575ffcc87b58c9e094074f399bebd66f07cc (diff) | |
download | nextcloud-server-backport/48426/stable28.tar.gz nextcloud-server-backport/48426/stable28.zip |
fix(config): Suppress error at install timebackport/48426/stable28
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) { |