From e4cfd4a7c312057820ea6feb98fed7f8d462fafb Mon Sep 17 00:00:00 2001 From: k-alin <63866963+k-alin@users.noreply.github.com> Date: Fri, 25 Feb 2022 16:09:54 +0100 Subject: [PATCH] Update src/Database/Database.php Co-authored-by: Hypolite Petovan --- src/Database/Database.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.5