diff options
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-x | include/dba/dba_driver.php | 2 |
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; |