summaryrefslogtreecommitdiffstats
path: root/lib/private/setup/mssql.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/setup/mssql.php')
-rw-r--r--lib/private/setup/mssql.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/setup/mssql.php b/lib/private/setup/mssql.php
index 8a4904b9243..f8815259af4 100644
--- a/lib/private/setup/mssql.php
+++ b/lib/private/setup/mssql.php
@@ -32,11 +32,9 @@ class MSSQL extends AbstractDatabase {
$masterConnection = @sqlsrv_connect($this->dbhost, $masterConnectionInfo);
if(!$masterConnection) {
- $entry = null;
+ $entry = '';
if( ($errors = sqlsrv_errors() ) != null) {
$entry='DB Error: "'.print_r(sqlsrv_errors()).'"<br />';
- } else {
- $entry = '';
}
throw new \OC\DatabaseSetupException($this->trans->t('MS SQL username and/or password not valid: %s', array($entry)),
$this->trans->t('You need to enter either an existing account or the administrator.'));