diff options
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index 8bd3964492a..41ec5ec67eb 100644 --- a/lib/db.php +++ b/lib/db.php @@ -156,11 +156,13 @@ class OC_DB { 'user' => $user, 'password' => $pass, 'host' => $host, - 'port' => $port, 'dbname' => $name, 'charset' => 'AL32UTF8', 'driver' => 'oci8', ); + if (!empty($port)) { + $connectionParams['port'] = $port; + } break; case 'mssql': $connectionParams = array( |