From: k-alin <63866963+k-alin@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:09:30 +0000 (+0100) Subject: Update src/Database/Database.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=470be2b5e40153682298b07d5220aba4414d47c2;p=friendica.git Update src/Database/Database.php Correct indent Co-authored-by: Philipp --- 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);