From: k-alin <63866963+k-alin@users.noreply.github.com> Date: Fri, 25 Feb 2022 15:09:54 +0000 (+0100) Subject: Update src/Database/Database.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4cfd4a7c312057820ea6feb98fed7f8d462fafb;p=friendica.git Update src/Database/Database.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Database/Database.php b/src/Database/Database.php index 920392a0f3..88d8d7d0f6 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -136,11 +136,11 @@ class Database $connect .= ";charset=" . $charset; } - if ($socket) { - $connect .= ";$unix_socket=" . $socket; - } + if ($socket) { + $connect .= ";$unix_socket=" . $socket; + } - try { + 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);