From 470be2b5e40153682298b07d5220aba4414d47c2 Mon Sep 17 00:00:00 2001 From: k-alin <63866963+k-alin@users.noreply.github.com> Date: Fri, 25 Feb 2022 12:09:30 +0100 Subject: [PATCH] Update src/Database/Database.php Correct indent Co-authored-by: Philipp --- src/Database/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index b5aed6c18a..885ece99fa 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -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); -- 2.39.5