diff options
author | Urban Müller | 2020-03-31 16:11:00 +0200 |
---|---|---|
committer | Urban Müller | 2020-03-31 16:11:00 +0200 |
commit | c469bbf0383c1865a00c1cfe6dea23025bbe000e (patch) | |
tree | 813e01dc25414f7b7f785c328e7c03ddd78b7010 /it_dbi.class | |
parent | 222046d801632a4e4462920f3f99d4426d0f4cfd (diff) | |
download | itools-c469bbf0383c1865a00c1cfe6dea23025bbe000e.tar.gz itools-c469bbf0383c1865a00c1cfe6dea23025bbe000e.tar.bz2 itools-c469bbf0383c1865a00c1cfe6dea23025bbe000e.zip |
return deleted ids in delete_untouched for triggers
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/it_dbi.class b/it_dbi.class index 633974e..8cf8d54 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -870,11 +870,11 @@ function delete_untouched($query = null) { if ($this->select(['SELECT' => $this->_p['keyfield']] + (array)$query)) while ($this->iterate()) - if (($id = $this->_key) && !$this->_touchedids[$id]) - $result += $this->delete(); + if (($id = $this->_key) && !$this->_touchedids[$id] && $this->delete()) + $result[] = $id; unset($this->_touchedids); - return (int)$result; + return (array)$result; } /** |