diff options
author | Viktor Szakats <vszakats@users.noreply.github.com> | 2021-02-27 05:05:54 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-03-26 16:21:39 +0300 |
commit | f71ae40b3b31c2d83ed7951d158fba348f89b374 (patch) | |
tree | 8e3027e8e288751bf50f6fb210fdee535749cffb | |
parent | 7ebe7894e95514f6a0c1e4d59d42763371e64df1 (diff) |
fix Internal Server Error @ /settings/admin/serverinfo in 21.0.0
Fixes: https://github.com/nextcloud/serverinfo/issues/278
Signed-off-by: Viktor Szakats <commit@vsz.me>
-rw-r--r-- | lib/DatabaseStatistics.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php index a955f7f..dcfa9cf 100644 --- a/lib/DatabaseStatistics.php +++ b/lib/DatabaseStatistics.php @@ -112,7 +112,7 @@ class DatabaseStatistics { if (file_exists($this->config->getSystemValue('dbhost'))) { $database_size = filesize($this->config->getSystemValue('dbhost')); } else { - $params = $this->connection->getParams(); + $params = $this->connection->getInner()->getParams(); if (file_exists($params['path'])) { $database_size = filesize($params['path']); } |