summaryrefslogtreecommitdiff
path: root/system/libraries/Database.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-11-01 11:25:08 -0700
committerChad Kieffer <ckieffer@gmail.com>2009-11-01 11:25:08 -0700
commit1202db1c3a67ff8232254989ece76e707b21d730 (patch)
tree2d55b73ec9bbd9d1f5dbc7d9e8972d9b05285a25 /system/libraries/Database.php
parent7ae4b35d787bf51ac98baf1c1818f580e0195016 (diff)
parent91c5a9abb7b617e45b547ced6a28c14a64ef760f (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'system/libraries/Database.php')
-rw-r--r--system/libraries/Database.php12
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);