mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:05:56 +00:00
update installer mysqli_connect to only use port if defined
This commit is contained in:
@@ -112,7 +112,10 @@
|
|||||||
|
|
||||||
} else if ($type == "mysql") {
|
} else if ($type == "mysql") {
|
||||||
if (function_exists("mysqli_connect")) {
|
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 {
|
} else {
|
||||||
$link = mysql_connect($host, $user, $pass);
|
$link = mysql_connect($host, $user, $pass);
|
||||||
|
|||||||
Reference in New Issue
Block a user