Skip to content

Commit

Permalink
Merge pull request #149 from logan-reynolds/master
Browse files Browse the repository at this point in the history
Correct double to single quote within SQL query.
  • Loading branch information
jpahullo committed Jan 23, 2019
2 parents 8e25a6e + 32ad6ca commit cd2d152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mergeusertool.php
Expand Up @@ -145,7 +145,7 @@ public function __construct(tool_mergeusers_config $config = null, tool_mergeuse
break;
case 'mysqli':
case 'mariadb':
$this->sqlListTables = 'SHOW TABLES like "' . $CFG->prefix . '%"';
$this->sqlListTables = "SHOW TABLES like '" . $CFG->prefix . "%'";
break;
case 'pgsql':
$this->sqlListTables = "SELECT table_name FROM information_schema.tables WHERE table_name LIKE '" .
Expand Down

0 comments on commit cd2d152

Please sign in to comment.