From 12707a70f2777a9fe570f1b766de89b60ccec070 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 5 Sep 2013 08:06:31 +0000 Subject: bug 2865: correct handle of sockets for mysqli git-svn-id: http://piwigo.org/svn/trunk@24346 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_mysqli.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dblayer') 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) { -- cgit v1.2.3