From c9da06935801a3f5e6e83c22b24b06edab6e7555 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 6 Jan 2021 17:41:01 +0100 Subject: remove no longer necessary extra suffix argument --- it_dbi.class | 4 ++-- 1 file 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']) -- cgit v1.2.3