summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-07-19 03:12:55 +0000
committerChristian Schneider2007-07-19 03:12:55 +0000
commitaba070174a9989ef13a5f131423fb67784bf236a (patch)
tree54d4c0b20f11503b1e69129288f4fff432ac3194
parent930f7b038bf60b18e1b043289c3553398ca1b0fe (diff)
downloaditools-aba070174a9989ef13a5f131423fb67784bf236a.tar.gz
itools-aba070174a9989ef13a5f131423fb67784bf236a.tar.bz2
itools-aba070174a9989ef13a5f131423fb67784bf236a.zip
Fix SQL syntax error on updates
-rw-r--r--dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbi.class b/dbi.class
index e905c01..85b94cc 100644
--- a/dbi.class
+++ b/dbi.class
@@ -554,7 +554,7 @@ function update($tags = array(), $query = null)
$query = array($this->_keyfield => $this->_data[$this->_keyfield]);
if ($set = $this->_set($tags))
- if ($result = $this->query("UPDATE $this->_table " . $set . $this->_where($query)))
+ if ($result = $this->query("UPDATE $this->_table $set " . $this->_where($query)))
if (isset($this->_key) && $this->read($this->_key))
$this->_nofetch = false; # So we can do while(iterate()) update();