From: Andrew Dolgov Date: Fri, 19 Apr 2013 06:02:27 +0000 (+0400) Subject: update installer mysqli_connect to only use port if defined X-Git-Tag: 1.7.9~25^2~127 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=92c9a20cf51c55e9d866427786bc28b2d6ab48fd;p=tt-rss.git update installer mysqli_connect to only use port if defined --- 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);