diff options
author | Urban Müller | 2024-01-22 14:41:28 +0100 |
---|---|---|
committer | Urban Müller | 2024-01-22 14:41:28 +0100 |
commit | 7d10a1e37210802c1fd9a3cbc17d930ad4408e0a (patch) | |
tree | 051b6c7b5bbb5d2e290cfaea4d2a87dada70fe8b /it_dbi.class | |
parent | 31de739a6e72f3d24f67093eee5b15fc4f0daf64 (diff) | |
download | itools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.tar.gz itools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.tar.bz2 itools-7d10a1e37210802c1fd9a3cbc17d930ad4408e0a.zip |
also warn about it_error in query
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 2 |
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"]); |