From 7d10a1e37210802c1fd9a3cbc17d930ad4408e0a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 22 Jan 2024 14:41:28 +0100 Subject: also warn about it_error in query --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]); -- cgit v1.2.3