summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 1c30d6f..8fb32f0 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -819,7 +819,7 @@ function delete($query = null)
*/
function delete_untouched($query = null)
{
- if ($this->select($query))
+ if ($this->select(['SELECT' => $this->_p['keyfield']] + (array)$query))
while ($this->iterate())
if (($id = $this->_key) && !$this->_touchedids[$id])
$result += $this->delete();