Fix database_name in Usage_Statistics

(cherry picked from commit 3c6f44d)
This commit is contained in:
slawkens 2018-10-31 07:46:35 +01:00
parent 63bc0a9620
commit 5d0a0d352b

View File

@ -60,8 +60,8 @@ class Usage_Statistics {
$query = $db->query('SELECT SUM(ROUND(((DATA_LENGTH + INDEX_LENGTH) / 1024 ), 0)) AS "size"
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = "forgottenserver";');
WHERE TABLE_SCHEMA = "' . $config['database_name'] . '";');
if($query->rowCount() == 1) {
$query = $query->fetch();
$ret['database_size'] = $query['size'];