Fix handle_error call on failed database connection

This commit is contained in:
ruan 2024-09-29 09:14:29 +02:00
parent b079b0f954
commit c0e395d566

View File

@ -66,7 +66,7 @@ class Database {
$st->closeCursor(); $st->closeCursor();
} }
} catch (PDOException $e) { } catch (PDOException $e) {
$this->handle_error($cfg, $e); $this->handle_error($page, $e);
} }
if ($driver === 'pgsql') { if ($driver === 'pgsql') {
$this->conn->exec("SET NAMES 'UTF8';"); $this->conn->exec("SET NAMES 'UTF8';");