Skip to content

Commit

Permalink
fixed function bindDBPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Nov 10, 2023
1 parent e4a7679 commit 7665bab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hungng/HungNG_Custom_Based_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7665bab

Please sign in to comment.