From: hickert Date: Wed, 3 Mar 2010 09:55:57 +0000 (+0000) Subject: updated class ldap X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=558a7f7cd0c712e0f9e3285357f51f1046ffe3c0;p=gosa.git updated class ldap -'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 --- diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index af263e184..a1b6a8702 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -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'])){