Update src/Database/Database.php

Correct indent

Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
k-alin 2022-02-25 12:09:30 +01:00 committed by GitHub
parent 335be6f032
commit 470be2b5e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,12 +135,12 @@ class Database
if ($charset) {
$connect .= ";charset=" . $charset;
}
if ($socket) {
$connect .= ";$unix_socket=" . $socket;
}
try {
if ($socket) {
$connect .= ";$unix_socket=" . $socket;
}
try {
$this->connection = @new PDO($connect, $user, $pass, [PDO::ATTR_PERSISTENT => $persistent]);
$this->connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->pdo_emulate_prepares);
$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);