From 92c9a20cf51c55e9d866427786bc28b2d6ab48fd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Apr 2013 10:02:27 +0400 Subject: update installer mysqli_connect to only use port if defined --- install/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 416765e8f..cd017f995 100644 --- a/install/index.php +++ b/install/index.php @@ -112,7 +112,10 @@ } else if ($type == "mysql") { if (function_exists("mysqli_connect")) { - return mysqli_connect($host, $user, $pass, $db, $port); + if ($port) + return mysqli_connect($host, $user, $pass, $db, $port); + else + return mysqli_connect($host, $user, $pass, $db); } else { $link = mysql_connect($host, $user, $pass); -- cgit v1.2.3