diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-03 13:28:26 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-03 13:28:26 -0800 |
commit | 93ec51aa0fd91e1534563d9e9514e85be4e3ce2e (patch) | |
tree | 012d6ff2c9fda6c7812d6f4397396b627ffd606c /system/libraries/Database.php | |
parent | 595e03b556a8675844f868778c65f79e1b632d24 (diff) | |
parent | 192b11724ef315ebaabb3088a0daba1450fd7df0 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'system/libraries/Database.php')
-rw-r--r-- | system/libraries/Database.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/system/libraries/Database.php b/system/libraries/Database.php index 2039371c..4cd29c58 100644 --- a/system/libraries/Database.php +++ b/system/libraries/Database.php @@ -1031,8 +1031,12 @@ class Database_Core { $table = $this->from[0]; } + else + { + $table = $this->config['table_prefix'].$table; + } - $sql = $this->driver->merge($this->config['table_prefix'].$table, array_keys($this->set), array_values($this->set)); + $sql = $this->driver->merge($table, array_keys($this->set), array_values($this->set)); $this->reset_write(); return $this->query($sql); @@ -1068,8 +1072,12 @@ class Database_Core { $table = $this->from[0]; } + else + { + $table = $this->config['table_prefix'].$table; + } - $sql = $this->driver->update($this->config['table_prefix'].$table, $this->set, $this->where); + $sql = $this->driver->update($table, $this->set, $this->where); $this->reset_write(); return $this->query($sql); |