LSsession :: isSubDnLSobject() : Fixed notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:34:57 +0000 (19:34 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:34:57 +0000 (19:34 +0100)
public_html/includes/class/class.LSsession.php

index e9e3da2..7b42cfb 100644 (file)
@@ -2067,7 +2067,7 @@ class LSsession {
    */
   public static function isSubDnLSobject($type) {
     $result = false;
-    if (is_array(self :: $ldapServer['subDn']['LSobject'])) {
+    if (isset(self :: $ldapServer['subDn']['LSobject']) && is_array(self :: $ldapServer['subDn']['LSobject'])) {
       foreach(self :: $ldapServer['subDn']['LSobject'] as $key => $value) {
         if ($key==$type) {
           $result=true;