Remove if-block as the helper does return the empty prefix
This commit is contained in:
parent
fdf1a941b7
commit
588fae54cb
1 changed files with 0 additions and 5 deletions
|
@ -30,11 +30,6 @@ if(version_compare($installedVersion, '0.6.2', '<')) {
|
||||||
$helper = new \OCA\user_ldap\lib\Helper();
|
$helper = new \OCA\user_ldap\lib\Helper();
|
||||||
$prefixes = $helper->getServerConfigurationPrefixes();
|
$prefixes = $helper->getServerConfigurationPrefixes();
|
||||||
|
|
||||||
// Add empty prefix if only one serverconfig exists
|
|
||||||
if(count($prefixes) === 0) {
|
|
||||||
$prefixes[] = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach($prefixes as $prefix) {
|
foreach($prefixes as $prefix) {
|
||||||
\OC::$server->getConfig()->deleteAppValue('user_ldap', $prefix . "ldap_nocase");
|
\OC::$server->getConfig()->deleteAppValue('user_ldap', $prefix . "ldap_nocase");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue