Skip to content

Commit 1d9a3df

Browse files
committed
fixed function bindDBPrefix
1 parent 7dc9248 commit 1d9a3df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hungng/HungNG_Custom_Based_model.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ public function getTableName()
224224
*/
225225
public function bindDBPrefix($table)
226226
{
227-
if (strpos($table, $this->db->dbprefix)) {
228-
return $table;
227+
if (!empty($this->db->dbprefix)) {
228+
if (strpos($table, $this->db->dbprefix)) {
229+
return $table;
230+
}
229231
}
230232

231233
return $this->db->dbprefix($table);

0 commit comments

Comments
 (0)