From c0e395d56618056d4f31d8013c2e69b30ece42c6 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Sun, 29 Sep 2024 09:14:29 +0200 Subject: [PATCH] Fix handle_error call on failed database connection --- inc/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/database.php b/inc/database.php index a1271b2..ef88666 100644 --- a/inc/database.php +++ b/inc/database.php @@ -66,7 +66,7 @@ class Database { $st->closeCursor(); } } catch (PDOException $e) { - $this->handle_error($cfg, $e); + $this->handle_error($page, $e); } if ($driver === 'pgsql') { $this->conn->exec("SET NAMES 'UTF8';");