diff options
author | Nathan Gass | 2021-01-06 17:41:01 +0100 |
---|---|---|
committer | Nathan Gass | 2021-01-06 17:41:01 +0100 |
commit | c9da06935801a3f5e6e83c22b24b06edab6e7555 (patch) | |
tree | 091a92459ec939c77098d9ded9a5567528d51469 | |
parent | 11f530c6d129e0ff14a37445d28422ce5bc5f1e2 (diff) | |
download | itools-c9da06935801a3f5e6e83c22b24b06edab6e7555.tar.gz itools-c9da06935801a3f5e6e83c22b24b06edab6e7555.tar.bz2 itools-c9da06935801a3f5e6e83c22b24b06edab6e7555.zip |
remove no longer necessary extra suffix argument
-rw-r--r-- | it_dbi.class | 4 |
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']) |