X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=install%2Findex.php;h=cd017f99535d73f4790629defd3deca0a3902592;hb=92c9a20cf51c55e9d866427786bc28b2d6ab48fd;hp=416765e8f7caceedede06dc7fb9164631045445e;hpb=df25e4d221d20d358132c06510b23c852072d557;p=tt-rss.git diff --git a/install/index.php b/install/index.php index 416765e8..cd017f99 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);