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 0af1273..d4722e9 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -892,7 +892,7 @@ function delete($query = null)
*/
function delete_untouched($query = null, $p = [])
{
- if (isset($query['mintouched']))
+ if (isset($query['mintouched']) || isset($query['it_error']))
it::error('bad usage');
else if (count((array)$this->_touchedids) < $p['mintouched'])
it::error((array)$p['it_error'] + ['title' => "skipping delete, only " . count((array)$this->_touchedids) . " records were touched"]);