From 92afdf4074c65c394250d92b32cb85ae97ffe970 Mon Sep 17 00:00:00 2001 From: ralf Date: Sat, 18 Feb 2023 19:37:55 +0100 Subject: [PATCH] fix typo / replaced wrong line --- api/src/Db.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/Db.php b/api/src/Db.php index cc27d991e5..5334f9096a 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -791,7 +791,7 @@ class Db { $rs = $this->Link_ID->Execute($Query_String, $inputarr); } - $this->Errno = 2006; + $this->Errno = $this->Link_ID->ErrorNo(); $this->Error = $this->Link_ID->ErrorMsg(); } // PHP 8.1 mysqli throws its own exception @@ -800,8 +800,7 @@ class Db { throw new Db\Exception($e->getMessage(), $e->getCode(), $e); } - _egw_log_exception($e); - $this->Errno = $e->getCode(); + $this->Errno = 2006; $this->Error = $e->getMessage(); } $this->Row = 0;