]> git.wh0rd.org Git - tt-rss.git/commitdiff
update installer mysqli_connect to only use port if defined
authorAndrew Dolgov <fox@fakecake.org>
Fri, 19 Apr 2013 06:02:27 +0000 (10:02 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 19 Apr 2013 06:02:27 +0000 (10:02 +0400)
install/index.php

index 416765e8f7caceedede06dc7fb9164631045445e..cd017f99535d73f4790629defd3deca0a3902592 100644 (file)
 
                } 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);