diff options
author | Christian Schneider | 2007-07-19 03:12:55 +0000 |
---|---|---|
committer | Christian Schneider | 2007-07-19 03:12:55 +0000 |
commit | aba070174a9989ef13a5f131423fb67784bf236a (patch) | |
tree | 54d4c0b20f11503b1e69129288f4fff432ac3194 /dbi.class | |
parent | 930f7b038bf60b18e1b043289c3553398ca1b0fe (diff) | |
download | itools-aba070174a9989ef13a5f131423fb67784bf236a.tar.gz itools-aba070174a9989ef13a5f131423fb67784bf236a.tar.bz2 itools-aba070174a9989ef13a5f131423fb67784bf236a.zip |
Fix SQL syntax error on updates
Diffstat (limited to 'dbi.class')
-rw-r--r-- | dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |