diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 16:17:15 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-18 16:35:19 +0200 |
commit | ccf47f40aac167f25b7537b3819b99d6c59bc92e (patch) | |
tree | 3d6529319d53f269241c00d5ef5a15dc57aa91f8 /lib/private/setup | |
parent | 8cb0d97b1099561d7f9a059f3ba8105a2c719aab (diff) | |
download | nextcloud-server-ccf47f40aac167f25b7537b3819b99d6c59bc92e.tar.gz nextcloud-server-ccf47f40aac167f25b7537b3819b99d6c59bc92e.zip |
Remove unused variables
* should make scrutinizer a lot more happy
* reduces maybe memory footprint
Diffstat (limited to 'lib/private/setup')
-rw-r--r-- | lib/private/setup/mssql.php | 4 |
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.')); |