summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2020-03-31 16:11:00 +0200
committerUrban Müller2020-03-31 16:11:00 +0200
commitc469bbf0383c1865a00c1cfe6dea23025bbe000e (patch)
tree813e01dc25414f7b7f785c328e7c03ddd78b7010 /it_dbi.class
parent222046d801632a4e4462920f3f99d4426d0f4cfd (diff)
downloaditools-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.class6
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;
}
/**