fix typo / replaced wrong line

This commit is contained in:
ralf 2023-02-18 19:37:55 +01:00
parent b05d67847b
commit 92afdf4074

View File

@ -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;