diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-18 16:59:01 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-18 16:59:01 +0300 |
commit | 5e8b9c40d9f7bff27f583848439ae38ee509c67d (patch) | |
tree | 5136583c8601d359c7b5a80a0979ef73537049e4 /lib | |
parent | fb00ed81ea55d47ad56ec50e358ba14b8ab4a805 (diff) |
Fix problem when checking size with dash in DB name
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Categories/Database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php index 017f7e8..959bbdb 100644 --- a/lib/Categories/Database.php +++ b/lib/Categories/Database.php @@ -122,7 +122,7 @@ class Database implements ICategory { 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()) { |