diff --git a/bt/includes/init_tr.php b/bt/includes/init_tr.php index 12cb420e..0a3363f2 100644 --- a/bt/includes/init_tr.php +++ b/bt/includes/init_tr.php @@ -161,7 +161,7 @@ class sql_db */ function select_db () { - $this->cur_query = 'select db'; + $this->cur_query = "select db: '{$this->cfg['dbname']}'"; $this->debug('start'); if (!@mysql_select_db($this->cfg['dbname'], $this->link)) diff --git a/library/includes/core/mysql.php b/library/includes/core/mysql.php index 7f5d6d10..5c2beb32 100644 --- a/library/includes/core/mysql.php +++ b/library/includes/core/mysql.php @@ -123,7 +123,7 @@ class sql_db */ function select_db () { - $this->cur_query = ($this->dbg_enabled) ? "select db: {$this->cfg['dbname']}" : 'select db'; + $this->cur_query = ($this->dbg_enabled) ? "select db: '{$this->cfg['dbname']}'" : 'select db'; $this->debug('start'); if (!@mysql_select_db($this->cfg['dbname'], $this->link))