From 44c6c5e237457c542e4baf8f4927794b78b18b9d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Mar 2010 10:29:25 +0000 Subject: [PATCH] Updated class ldap -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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])){ -- 2.30.2