Commit 5520ae80 by Scott

Fix qa_db_list_tables (external users)

parent 958b40d1
......@@ -458,7 +458,7 @@ function qa_db_list_tables($onlyTablesWithPrefix = false)
$query = 'SHOW TABLES';
if ($onlyTablesWithPrefix) {
$col = 'Tables_in_' . QA_MYSQL_DATABASE;
$col = 'Tables_in_' . QA_FINAL_MYSQL_DATABASE;
$query .= ' WHERE `' . $col . '` LIKE "' . str_replace('_', '\\_', QA_MYSQL_TABLE_PREFIX) . '%"';
if (defined('QA_MYSQL_USERS_PREFIX')) {
$query .= ' OR `' . $col . '` LIKE "' . str_replace('_', '\\_', QA_MYSQL_USERS_PREFIX) . '%"';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment