diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-05-24 21:57:34 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-06-24 22:38:19 +0200 |
commit | dca8c1cbc138203d4069660bb8c1caf23ff68e04 (patch) | |
tree | 04d9594abef61b644e59ae25c34b52f7fcb22243 /lib/db.php | |
parent | 6887d7daf5f0dfcd2f1da0d9c8f796a4fcc29963 (diff) | |
download | nextcloud-server-dca8c1cbc138203d4069660bb8c1caf23ff68e04.tar.gz nextcloud-server-dca8c1cbc138203d4069660bb8c1caf23ff68e04.zip |
Fixes connecting to Oracle without port set
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( |