summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index ace10ba..fed467d 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -770,7 +770,7 @@ function iterate()
* @param $tags key => value pairs to set
* @return true for success, false for failure (e.g. duplicate entry for key)
*/
-function insert($tags = array(), $command = "INSERT", $suffix = "")
+function insert($tags = array(), $command = "INSERT")
{
$this->_connect();
@@ -782,7 +782,7 @@ function insert($tags = array(), $command = "INSERT", $suffix = "")
$values = $this->_values($tags, "insert");
- if ($result = $this->query($query = "$command INTO {$this->_p['table']} " . $values . $suffix))
+ if ($result = $this->query($query = "$command INTO {$this->_p['table']} " . $values))
{
$id = ($this->_p['autoincrement'] && !isset($tags[$this->_p['keyfield']])) ? $this->_insertid : $tags[$this->_p['keyfield']];
if ($this->_p['keyfield'] && !$this->read($id) && $this->_p['safety'])