]> git.wh0rd.org Git - tt-rss.git/commitdiff
pass DB_PORT as string
authorAndrew Dolgov <fox@fakecake.org>
Thu, 18 Apr 2013 11:44:25 +0000 (15:44 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Thu, 18 Apr 2013 11:44:25 +0000 (15:44 +0400)
classes/db.php

index f31a2a9a313f008e0a90f4cc11c2c4b26735d4d3..9b800dc22e345f3fa6b5e27457daad5d10f53900 100644 (file)
@@ -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());