From 8c7d32c523a85d15ce97bd992f9aa25c8a0de71f Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Mon, 23 Dec 2019 21:11:59 +0100 Subject: [PATCH] Fixed MPREFIX regression caused by a4c6fd8b Caused by: a4c6fd8b5bf268ae7032acb14f4476a192a48b62 - FIX: MySQL table prefix is lost due to cyclic e_db_pdo::database() call that loses the prefix and reverts back to the default prefix, MPREFIX or "e107_". --- e107_handlers/e_db_pdo_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/e_db_pdo_class.php b/e107_handlers/e_db_pdo_class.php index 38fda0c5d..cc5e2c55f 100644 --- a/e107_handlers/e_db_pdo_class.php +++ b/e107_handlers/e_db_pdo_class.php @@ -2796,7 +2796,7 @@ class e_db_pdo implements e_db { // debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2); $this->connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword); - $this->database($this->mySQLdefaultdb); + $this->database($this->mySQLdefaultdb, $this->mySQLPrefix); //$this->mySQLaccess = e107::getDb()->get_mySQLaccess(); } }