From aba070174a9989ef13a5f131423fb67784bf236a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 19 Jul 2007 03:12:55 +0000 Subject: Fix SQL syntax error on updates --- dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3