|
|
@@ -597,7 +597,8 @@ class BxDolDb extends BxDolFactory implements iBxDolSingleton
|
|
|
*/
|
|
|
public function listTables()
|
|
|
{
|
|
|
- $oStatement = $this->pdoQuery("SHOW TABLES FROM `" . BX_DATABASE_NAME . "`");
|
|
|
+ $sDBName = is_array($this->_sDbname) ? $this->_sDbname[0] : $this->_sDbname;
|
|
|
+ $oStatement = $this->pdoQuery("SHOW TABLES FROM `" . $sDBName . "`");
|
|
|
|
|
|
return $this->getColumn($oStatement);
|
|
|
}
|