Skip to content

Commit f0dc353

Browse files
committed
Removed hardcoded database name from database size.
1 parent e1652a4 commit f0dc353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ public function getDatabaseSize()
964964
$query = 'SELECT '
965965
. ' ROUND(SUM(data_length + index_length) / 1024 / 1024, 3) AS `size`'
966966
. ' FROM information_schema.TABLES'
967-
. ' WHERE table_schema = "part-db"'
967+
. ' WHERE table_schema = ?'
968968
. ' GROUP BY table_schema; ';
969969

970970
$values[] = $config['db']['name'];

0 commit comments

Comments
 (0)