mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
only pass port to mysqli_connect when it is set
This commit is contained in:
@@ -3,7 +3,10 @@ class Db_Mysqli implements IDb {
|
||||
private $link;
|
||||
|
||||
function connect($host, $user, $pass, $db, $port) {
|
||||
$this->link = mysqli_connect($host, $user, $pass, $db, $port);
|
||||
if ($port)
|
||||
$this->link = mysqli_connect($host, $user, $pass, $db, $port);
|
||||
else
|
||||
$this->link = mysqli_connect($host, $user, $pass, $db);
|
||||
|
||||
if ($this->link) {
|
||||
$this->init();
|
||||
|
||||
Reference in New Issue
Block a user