diff --git a/system/Database/Postgre/Connection.php b/system/Database/Postgre/Connection.php index 70f3ff461689..4ce2b0763536 100644 --- a/system/Database/Postgre/Connection.php +++ b/system/Database/Postgre/Connection.php @@ -461,10 +461,9 @@ protected function _enableForeignKeyChecks() */ public function error(): array { - $lastError = pg_last_error($this->connID); return [ 'code' => '', - 'message' => ! in_array($lastError, ['', '0'], true) ? $lastError : '', + 'message' => pg_last_error($this->connID), ]; }