diff --git a/include/dblayer/functions_mysqli.inc.php b/include/dblayer/functions_mysqli.inc.php index 7de69d02f..8c1ffe5ae 100644 --- a/include/dblayer/functions_mysqli.inc.php +++ b/include/dblayer/functions_mysqli.inc.php @@ -48,8 +48,8 @@ function pwg_db_connect($host, $user, $password, $database) if (strpos($host, '/') === 0) { - $host = null; $socket = $host; + $host = null; } elseif (strpos($host, ':') !== false) {