diff options
author | Andrew Dolgov <[email protected]> | 2013-04-19 10:02:27 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-19 10:02:27 +0400 |
commit | 92c9a20cf51c55e9d866427786bc28b2d6ab48fd (patch) | |
tree | efaf6b67e88ef89f67cdb59db8d01e0bcb4ff0c0 /install/index.php | |
parent | df25e4d221d20d358132c06510b23c852072d557 (diff) |
update installer mysqli_connect to only use port if defined
Diffstat (limited to 'install/index.php')
-rw-r--r-- | install/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); |