Skip to content

Commit

Permalink
Fixes Issue tareq1988#82
Browse files Browse the repository at this point in the history
tareq1988#82 maybe you know a better fix let me now
  • Loading branch information
kevinjavitz authored Jan 17, 2022
1 parent d34de75 commit 7e6ea11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ class CustomTableModel extends Model {
if ( isset( $this->table ) ){
$prefix = $this->getConnection()->db->prefix;

return $prefix . $this->table;
$prefixAlready = strpos($this->table,$prefix);

if($prefixAlready === false){
return $prefix . $this->table;
} else {
return $this->table;
}

}

return parent::getTable();
Expand Down

0 comments on commit 7e6ea11

Please sign in to comment.