diff --git a/src/Illuminate/Database/Connectors/SqlServerConnector.php b/src/Illuminate/Database/Connectors/SqlServerConnector.php index 7a2a6c814632..cc135643a1ab 100755 --- a/src/Illuminate/Database/Connectors/SqlServerConnector.php +++ b/src/Illuminate/Database/Connectors/SqlServerConnector.php @@ -155,7 +155,7 @@ protected function buildConnectString($driver, array $arguments) */ protected function buildHostString(array $config, $separator) { - if (isset($config['port'])) { + if (isset($config['port']) && ! empty($config['port'])) { return $config['host'].$separator.$config['port']; } else { return $config['host'];