LSsession :: getSubDnLdapServer() : Fixed notices PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 25 Nov 2010 11:27:46 +0000 (12:27 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 25 Nov 2010 11:27:46 +0000 (12:27 +0100)
public_html/includes/class/class.LSsession.php

index 1bd90d6..110e047 100644 (file)
@@ -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 {