Skip to content

Commit

Permalink
added backtick to the database name on mysql function
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsky committed Dec 6, 2012
1 parent fc3ff87 commit e663e92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/modules/easy2/install/install.class.php
Expand Up @@ -539,9 +539,8 @@ public function initInstall($post, $index) {
// mysql_list_fields()
// GET All Tables
$dbase = str_replace('`', '', $this->modx->db->config['dbase']);
$res = mysql_query('SHOW TABLES FROM ' . $dbase);
$res = mysql_query('SHOW TABLES FROM `' . $dbase . '`');
if (!$res) {

echo __LINE__ . ' : $dbase = ' . $dbase . '<br />';
echo __LINE__ . ' : $dbase = ' . 'SHOW TABLES FROM ' . $dbase . '<br />';
echo __LINE__ . ' : $params = ' . mysql_error() . '<br />';
Expand Down

0 comments on commit e663e92

Please sign in to comment.