diff options
author | Robin Appelman <robin@icewind.nl> | 2017-04-10 17:58:52 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-04-10 17:58:52 +0200 |
commit | 421ca6439f09a6760e33615b5ba26f87836c0e58 (patch) | |
tree | ed53ca1bcf1680179ab418d538c5a9e82d4c2ad8 /lib/private/Setup | |
parent | 18580395d4095842462e035a2d947e716413d2fd (diff) | |
download | nextcloud-server-421ca6439f09a6760e33615b5ba26f87836c0e58.tar.gz nextcloud-server-421ca6439f09a6760e33615b5ba26f87836c0e58.zip |
use the same oci connectstring in all code paths
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Setup')
-rw-r--r-- | lib/private/Setup/OCI.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/OCI.php b/lib/private/Setup/OCI.php index 0538b3da98b..d3fe3018f49 100644 --- a/lib/private/Setup/OCI.php +++ b/lib/private/Setup/OCI.php @@ -149,7 +149,7 @@ class OCI extends AbstractDatabase { if ($e_host == '') { $easy_connect_string = $e_dbname; // use dbname as easy connect name } else { - $easy_connect_string = '//'.$e_host.'/'.$e_dbname; + $easy_connect_string = '//' . $e_host . (!empty($e_port) ? ":{$e_port}" : "") . '/' . $e_dbname; } $connection = @oci_connect($this->dbUser, $this->dbPassword, $easy_connect_string); if(!$connection) { |