aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-09-05 08:06:31 +0000
committermistic100 <mistic@piwigo.org>2013-09-05 08:06:31 +0000
commit12707a70f2777a9fe570f1b766de89b60ccec070 (patch)
tree252dd749ab9fc266378083794dc771572fcd4f2b
parente76d7301c6385630b594002c49e5db4afcc34216 (diff)
bug 2865: correct handle of sockets for mysqli
git-svn-id: http://piwigo.org/svn/trunk@24346 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/dblayer/functions_mysqli.inc.php2
1 files changed, 1 insertions, 1 deletions
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)
{