Code

Updated class ldap
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 10:29:25 +0000 (10:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 10:29:25 +0000 (10:29 +0000)
-Fixed problem with create missing trees
-if MUST or MAY were multiple values, we couldn't create missing trees anymore

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@15897 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc

index af263e184ce2e20d7da94a5c1b93db695829b8bd..a1b6a87022d1cf05efebaac63ecfcb7ae7340ce0 100644 (file)
@@ -673,7 +673,7 @@ class LDAP{
           /* Get name of first matching objectClass */
           $ocname= "";
           foreach($classes as $class){
-            if (isset($class['MUST']) && $class['MUST'] == "$type"){
+            if (isset($class['MUST']) && in_array($type, $class['MUST'])){
 
               /* Look for first classes that is structural... */
               if (isset($class['STRUCTURAL'])){