From 9f45b422ae5614aa86753b24cafd7196b1b15bec Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 25 Nov 2010 12:27:46 +0100 Subject: [PATCH] LSsession :: getSubDnLdapServer() : Fixed notices PHP --- public_html/includes/class/class.LSsession.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/includes/class/class.LSsession.php b/public_html/includes/class/class.LSsession.php index 1bd90d68..110e047c 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -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 {