]> git.wh0rd.org - tt-rss.git/blobdiff - include/db.php
Merge pull request #89 from alsvartr/auth_radius
[tt-rss.git] / include / db.php
index 0479df6a9ade71280e590160c6801321b643d39f..a70a1d87889ad4528141e966e4aee5711c2431b0 100644 (file)
@@ -15,7 +15,7 @@ function db_connect($host, $user, $pass, $db) {
                        $string .= " host=$host";
                }
 
-               if (defined('DB_PORT')) {
+               if (defined('DB_PORT') && DB_PORT) {
                        $string = "$string port=" . DB_PORT;
                }