From facf8adaf75db16dc80836f25eb7423056e06c4e Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Tue, 31 Oct 2023 10:05:43 +0900 Subject: [PATCH] DB\IO move dbReturn params set before first abort --- www/lib/CoreLibs/DB/IO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/lib/CoreLibs/DB/IO.php b/www/lib/CoreLibs/DB/IO.php index f0e8173b..d4642489 100644 --- a/www/lib/CoreLibs/DB/IO.php +++ b/www/lib/CoreLibs/DB/IO.php @@ -2411,6 +2411,8 @@ class IO // set the query $this->cursor_ext[$query_hash]['query'] = $query; + // set the query parameters + $this->cursor_ext[$query_hash]['params'] = $params; // before doing ANYTHING check if query is "SELECT ..." everything else does not work if (!$this->dbCheckQueryForSelect($this->cursor_ext[$query_hash]['query'])) { $this->__dbError(17, false, context: [ @@ -2420,8 +2422,6 @@ class IO ]); return false; } - // set the query parameters - $this->cursor_ext[$query_hash]['params'] = $params; // QUERY PARAMS: run query params check and rewrite if ($this->dbGetConvertPlaceholder() === true) { try {