aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2018-01-19 09:10:28 +0100
committerGitHub <noreply@github.com>2018-01-19 09:10:28 +0100
commit0844fb8d8a26acf634fb3ddb8da32c451d534b6e (patch)
treebe56e3411b2804b9a9dd4c5478636e8e5860eed1
parenta0e1a8e0a20df640ef951dee4fb3c6ed19faee03 (diff)
parent8a60bb461913c59cd65bfaa28c3d40af32a59304 (diff)
downloadvolse-hubzilla-0844fb8d8a26acf634fb3ddb8da32c451d534b6e.tar.gz
volse-hubzilla-0844fb8d8a26acf634fb3ddb8da32c451d534b6e.tar.bz2
volse-hubzilla-0844fb8d8a26acf634fb3ddb8da32c451d534b6e.zip
Merge pull request #962 from dawnbreak/dev
Change dsn port handling in dba_pdo.
-rwxr-xr-xinclude/dba/dba_pdo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php
index f119d8926..7b58561a7 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -15,7 +15,7 @@ class dba_pdo extends dba_driver {
$dsn = $server;
}
else {
- $dsn = $this->driver_dbtype . ':host=' . $server . (intval($port) ? '' : ';port=' . $port);
+ $dsn = $this->driver_dbtype . ':host=' . $server . (intval($port) ? ';port=' . $port : '');
}
$dsn .= ';dbname=' . $db;
@@ -154,4 +154,4 @@ class dba_pdo extends dba_driver {
return 'pdo';
}
-} \ No newline at end of file
+}