Skip to content

Commit

Permalink
Fix qa_db_list_tables (external users)
Browse files Browse the repository at this point in the history
  • Loading branch information
svivian committed Jan 30, 2018
1 parent 958b40d commit 5520ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa-include/qa-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) . '%"';
Expand Down

0 comments on commit 5520ae8

Please sign in to comment.