diff --git a/src/Database/Database.php b/src/Database/Database.php index 885ece99fa..920392a0f3 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -165,10 +165,10 @@ class Database if ($charset) { $this->connection->set_charset($charset); } - - if ($socket) { - $this->connection->set_socket($socket); - } + + if ($socket) { + $this->connection->set_socket($socket); + } } }