Skip to content

Commit

Permalink
dev: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Mar 12, 2014
1 parent 801906a commit 1001b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/core/plugins/AuthLDAP/AuthLDAP.php
Expand Up @@ -122,9 +122,10 @@ public function getPluginSettings($getValues = true)
// value over the saved value
if (App()->request->isPostRequest) {
$ldapmode = App()->request->getPost('ldapmode', $ldapmode);
$aPluginSettings['ldapmode']['current'] = $ldapmode;
}

if ($aPluginSettings['ldapmode']['current'] == 'searchandbind') {
if ($ldapmode == 'searchandbind') {
// Hide simple settings
unset($aPluginSettings['userprefix']);
unset($aPluginSettings['domainsuffix']);
Expand Down

0 comments on commit 1001b3e

Please sign in to comment.