Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-01-18 16:59:01 +0300
committerJoas Schilling <coding@schilljs.com>2017-01-18 16:59:01 +0300
commit5e8b9c40d9f7bff27f583848439ae38ee509c67d (patch)
tree5136583c8601d359c7b5a80a0979ef73537049e4 /lib
parentfb00ed81ea55d47ad56ec50e358ba14b8ab4a805 (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.php2
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()) {