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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user