We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7440f7b commit a6d9eefCopy full SHA for a6d9eef
system/Database/SQLSRV/Connection.php
@@ -120,8 +120,8 @@ public function connect(bool $persistent = false)
120
unset($connection['UID'], $connection['PWD']);
121
}
122
123
- if (strpos($this->hostname, ',') === false) {
124
- $this->hostname = $this->port !== '' ? "{$this->hostname}, {$this->port}" : $this->hostname;
+ if (strpos($this->hostname, ',') === false && $this->port !== '') {
+ $this->hostname .= ', ' . $this->port;
125
126
127
sqlsrv_configure('WarningsReturnAsErrors', 0);
0 commit comments