Code

updated class ldap
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 09:55:57 +0000 (09:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 09:55:57 +0000 (09:55 +0000)
-'must' and 'may' member list of objectclasses can be an array

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15884 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'])){