From: Andrew Dolgov Date: Thu, 18 Apr 2013 11:44:25 +0000 (+0400) Subject: pass DB_PORT as string X-Git-Tag: 1.7.9~25^2~141 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1daf0f75faa32aff87db5ea5750aba33ec71c272;p=tt-rss.git pass DB_PORT as string --- diff --git a/classes/db.php b/classes/db.php index f31a2a9a..9b800dc2 100644 --- a/classes/db.php +++ b/classes/db.php @@ -29,7 +29,7 @@ class Db implements IDb { 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) { die("Error connecting through adapter: " . $this->adapter->last_error());