Skip to content

Commit

Permalink
Fix mysql connection
Browse files Browse the repository at this point in the history
  • Loading branch information
leomarquine committed Aug 31, 2018
1 parent d69c4e3 commit aa1ce7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Database/Connectors/MySqlConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public function getDsn($config)

$dsn = [];

if (isset($unix_socket)) {
if (!empty($unix_socket)) {
$dsn['unix_socket'] = $unix_socket;
}

if (isset($host) && ! isset($unix_socket)) {
if (isset($host) && empty($unix_socket)) {
$dsn['host'] = $host;
}

if (isset($port) && ! isset($unix_socket)) {
if (isset($port) && empty($unix_socket)) {
$dsn['port'] = $port;
}

Expand Down

0 comments on commit aa1ce7b

Please sign in to comment.