summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();