diff options
author | MaurĂcio Meneghini Fauth <mauricio@fauth.dev> | 2022-06-11 17:35:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 17:35:19 +0300 |
commit | bc61c2f8c34f137c4d8e0f408479ac8de5987e62 (patch) | |
tree | f9ef9f3b68e194356254f956148d1e2d9f99c1f4 | |
parent | d4942baecdd7363fb78e9eb394c79d3f7a0eed46 (diff) | |
parent | 479f8472b3b0a7343fcc50081bc08faa7841da9c (diff) |
Merge pull request #17587 from liviuconcioiu/statistics
Fix #17586 Statistics not showing for empty databases
Fixes #17586
-rw-r--r-- | libraries/classes/Controllers/Server/DatabasesController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/classes/Controllers/Server/DatabasesController.php b/libraries/classes/Controllers/Server/DatabasesController.php index 96af14b2ed..0bd4cba201 100644 --- a/libraries/classes/Controllers/Server/DatabasesController.php +++ b/libraries/classes/Controllers/Server/DatabasesController.php @@ -255,7 +255,7 @@ class DatabasesController extends AbstractController $statistics = $this->getStatisticsColumns(); if ($this->hasStatistics) { foreach (array_keys($statistics) as $key) { - $statistics[$key]['raw'] = $database[$key] ?? null; + $statistics[$key]['raw'] = (int) $database[$key] ?? 0; $totalStatistics[$key]['raw'] += (int) $database[$key] ?? 0; } } |