aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-24 18:55:11 -0700
committerzotlabs <mike@macgirvin.com>2016-10-24 18:55:11 -0700
commit25982f04756beef6677afbda06113f08d3521a5d (patch)
treef2f9a2c02705e41f38a9f5ba6010790248bdc2d2 /include/dba/dba_driver.php
parent2d2ac98b3d9a24e0601e22b0d6ed4b57f7071911 (diff)
downloadvolse-hubzilla-25982f04756beef6677afbda06113f08d3521a5d.tar.gz
volse-hubzilla-25982f04756beef6677afbda06113f08d3521a5d.tar.bz2
volse-hubzilla-25982f04756beef6677afbda06113f08d3521a5d.zip
set port if non-zero (instead of non-null)
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index afe209feb..8ae3dccfe 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -73,7 +73,7 @@ class DBA {
$dsn = $server;
}
else {
- $dsn = self::$scheme . ':host=' . $server . (is_null($port) ? '' : ';port=' . $port);
+ $dsn = self::$scheme . ':host=' . $server . (intval($port) ? '' : ';port=' . $port);
}
$dsn .= ';dbname=' . $db;