summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cce3850)
raw | patch | inline | side by side (parent: cce3850)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Mar 2010 09:55:57 +0000 (09:55 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15884 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_ldap.inc | patch | blob | history |
index af263e184ce2e20d7da94a5c1b93db695829b8bd..a1b6a87022d1cf05efebaac63ecfcb7ae7340ce0 100644 (file)
/* 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'])){