From 7665bab8200ab4d0dd996df88309b332e1e7272c Mon Sep 17 00:00:00 2001 From: nguyenanhung Date: Fri, 10 Nov 2023 15:41:13 +0700 Subject: [PATCH] fixed function bindDBPrefix --- hungng/HungNG_Custom_Based_model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hungng/HungNG_Custom_Based_model.php b/hungng/HungNG_Custom_Based_model.php index b3dadcd..a81e5be 100644 --- a/hungng/HungNG_Custom_Based_model.php +++ b/hungng/HungNG_Custom_Based_model.php @@ -221,8 +221,10 @@ public function getTableName() */ public function bindDBPrefix($table) { - if (strpos($table, $this->db->dbprefix)) { - return $table; + if (!empty($this->db->dbprefix)) { + if (strpos($table, $this->db->dbprefix)) { + return $table; + } } return $this->db->dbprefix($table);