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

@ -136,11 +136,11 @@ class Database
$connect .= ";charset=" . $charset; $connect .= ";charset=" . $charset;
} }
if ($socket) { if ($socket) {
$connect .= ";$unix_socket=" . $socket; $connect .= ";$unix_socket=" . $socket;
} }
try { try {
$this->connection = @new PDO($connect, $user, $pass, [PDO::ATTR_PERSISTENT => $persistent]); $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_EMULATE_PREPARES, $this->pdo_emulate_prepares);
$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);