update installer mysqli_connect to only use port if defined

This commit is contained in:
Andrew Dolgov 2013-04-19 10:02:27 +04:00
parent df25e4d221
commit 92c9a20cf5
1 changed files with 4 additions and 1 deletions

View File

@ -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);