Update src/Database/Database.php
Correct indent Co-authored-by: Philipp <admin+Github@philipp.info>
This commit is contained in:
parent
335be6f032
commit
470be2b5e4
|
@ -135,12 +135,12 @@ class Database
|
||||||
if ($charset) {
|
if ($charset) {
|
||||||
$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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user