diff --git a/services/nginx/app/classes/db.php b/services/nginx/app/classes/db.php index c8a0c623..0a313420 100644 --- a/services/nginx/app/classes/db.php +++ b/services/nginx/app/classes/db.php @@ -82,7 +82,14 @@ class db public function close(): void { - $this->conn->close(); + if (!isset($this->conn)) { + return; + } + + try { + $this->conn->close(); + } catch (\Throwable) { + } } public function get(string $table, int $id)