summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-01-22 14:41:28 +0100
committerUrban Müller2024-01-22 14:41:28 +0100
commit7d10a1e37210802c1fd9a3cbc17d930ad4408e0a (patch)
tree051b6c7b5bbb5d2e290cfaea4d2a87dada70fe8b
parent31de739a6e72f3d24f67093eee5b15fc4f0daf64 (diff)
downloaditools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.tar.gz
itools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.tar.bz2
itools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.zip
also warn about it_error in query
-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"]);