From f71ae40b3b31c2d83ed7951d158fba348f89b374 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 27 Feb 2021 03:05:54 +0100 Subject: fix Internal Server Error @ /settings/admin/serverinfo in 21.0.0 Fixes: https://github.com/nextcloud/serverinfo/issues/278 Signed-off-by: Viktor Szakats --- lib/DatabaseStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } -- cgit v1.2.3