mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Fix handle_error call on failed database connection
This commit is contained in:
parent
b079b0f954
commit
c0e395d566
@ -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';");
|
||||
|
Loading…
x
Reference in New Issue
Block a user