AntonLV 9 năm trước cách đây
mục cha
commit
7b3c465c0d
2 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 1 1
      inc/classes/BxDolDb.php
  2. 1 1
      upgrade/classes/BxDolUpgradeDb.php

+ 1 - 1
inc/classes/BxDolDb.php

@@ -506,7 +506,7 @@ class BxDolDb extends BxDolFactory implements iBxDolSingleton
      */
     public function listTables()
     {
-    	$oStatement = $this->pdoQuery("SHOW TABLES FROM " . BX_DATABASE_NAME);
+    	$oStatement = $this->pdoQuery("SHOW TABLES FROM `" . BX_DATABASE_NAME . "`");
 
         return $this->getColumn($oStatement);
     }

+ 1 - 1
upgrade/classes/BxDolUpgradeDb.php

@@ -468,7 +468,7 @@ class BxDolUpgradeDb
      */
     public function listTables()
     {
-    	$oStatement = $this->pdoQuery("SHOW TABLES FROM " . BX_DATABASE_NAME);
+    	$oStatement = $this->pdoQuery("SHOW TABLES FROM `" . BX_DATABASE_NAME . "`");
 
         return $this->getColumn($oStatement);
     }