mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSsession :: getSubDnLdapServer() : Fixed notices PHP
This commit is contained in:
parent
84c785e9f4
commit
9f45b422ae
1 changed files with 3 additions and 3 deletions
|
@ -1007,17 +1007,17 @@ class LSsession {
|
|||
}
|
||||
$return=array();
|
||||
foreach(self :: $ldapServer['subDn'] as $subDn_name => $subDn_config) {
|
||||
if ($login && $subDn_config['nologin']) continue;
|
||||
if ($login && isset($subDn_config['nologin']) && $subDn_config['nologin']) continue;
|
||||
if ($subDn_name == 'LSobject') {
|
||||
if (is_array($subDn_config)) {
|
||||
foreach($subDn_config as $LSobject_name => $LSoject_config) {
|
||||
if ($LSoject_config['basedn']) {
|
||||
if (isset($LSoject_config['basedn']) && !empty($LSoject_config['basedn'])) {
|
||||
$basedn = $LSoject_config['basedn'];
|
||||
}
|
||||
else {
|
||||
$basedn = self::getRootDn();
|
||||
}
|
||||
if ($LSoject_config['displayName']) {
|
||||
if (isset($LSoject_config['displayName']) && !empty($LSoject_config['displayName'])) {
|
||||
$displayName = $LSoject_config['displayName'];
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue