Skip to content

Commit 5340d6c

Browse files
authored
Merge pull request #274 from swearl/version-3.0
added dbprefix to table name
2 parents 38373b7 + fee565a commit 5340d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/MY_Model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ private function _fetch_table()
19191919
{
19201920
if (!isset($this->table))
19211921
{
1922-
$this->table = $this->_get_table_name(get_class($this));
1922+
$this->table = $this->_database->dbprefix($this->_get_table_name(get_class($this)));
19231923
if (!$this->db->table_exists($this->table)) {
19241924
show_error(
19251925
sprintf('While trying to figure out the table name, couldn\'t find an existing table named: <strong>"%s"</strong>.<br />You can set the table name in your model by defining the protected variable <strong>$table</strong>.',$this->table),

0 commit comments

Comments
 (0)