From cd9720eb4bc89bf6d7d6c1d0e35a2f983669fe82 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 21 Dec 2016 08:41:25 +0100 Subject: [PATCH] FIx usage of dash in db name Signed-off-by: Joas Schilling --- lib/DatabaseStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php index 50abfa81..a604a348 100644 --- a/lib/DatabaseStatistics.php +++ b/lib/DatabaseStatistics.php @@ -93,7 +93,7 @@ protected function databaseSize() { switch ($this->config->getSystemValue('dbtype')) { case 'mysql': $db_name = $this->config->getSystemValue('dbname'); - $sql = 'SHOW TABLE STATUS FROM ' . $db_name; + $sql = 'SHOW TABLE STATUS FROM `' . $db_name . '`'; $result = $this->connection->executeQuery($sql); $database_size = 0; while ($row = $result->fetch()) {