mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 05:35:55 +00:00
pass DB_PORT as string
This commit is contained in:
@@ -29,7 +29,7 @@ class Db implements IDb {
|
|||||||
|
|
||||||
if (!$this->adapter) die("Error initializing database adapter for " . DB_TYPE);
|
if (!$this->adapter) die("Error initializing database adapter for " . DB_TYPE);
|
||||||
|
|
||||||
$this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : false);
|
$this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : "");
|
||||||
|
|
||||||
if (!$this->link) {
|
if (!$this->link) {
|
||||||
die("Error connecting through adapter: " . $this->adapter->last_error());
|
die("Error connecting through adapter: " . $this->adapter->last_error());
|
||||||
|
|||||||
Reference in New Issue
Block a user