summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
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;
}
/**