1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Fixes #3800 Issue with DB structure update and database name containing hyphens.

This commit is contained in:
Cameron
2019-05-28 10:49:32 -07:00
parent 01d87ade4f
commit be8d2fca28
2 changed files with 2 additions and 2 deletions

View File

@@ -2161,7 +2161,7 @@ class e_db_pdo implements e_db
private function _getTableList($language='')
{
$database = !empty($this->mySQLdefaultdb) ? "FROM ".$this->mySQLdefaultdb : "";
$database = !empty($this->mySQLdefaultdb) ? "FROM `".$this->mySQLdefaultdb."`" : "";
$prefix = $this->mySQLPrefix;
if(strpos($prefix, ".") !== false) // eg. `my_database`.$prefix

View File

@@ -2552,7 +2552,7 @@ class e_db_mysql
private function db_mySQLtableList($language='')
{
$database = !empty($this->mySQLdefaultdb) ? "FROM ".$this->mySQLdefaultdb : "";
$database = !empty($this->mySQLdefaultdb) ? "FROM `".$this->mySQLdefaultdb."`" : "";
$prefix = $this->mySQLPrefix;
if(strpos($prefix, ".") !== false) // eg. `my_database`.$prefix