summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cbefb01)
raw | patch | inline | side by side (parent: cbefb01)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Sep 2009 09:59:54 +0000 (09:59 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 28 Sep 2009 09:59:54 +0000 (09:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14367 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index 6fa78e8ee0c1192094e953e4c5026008516a0b86..efa40a9105793b6f8187d852e72c36898c614799 100644 (file)
foreach($value['CLASSES_REQUIRED'] as $class){
if(!isset($objectclasses[$name])){
- $checks[$name]['STATUS'] = FALSE;
- $checks[$name]['MSG'] = sprintf(_("Missing required object class '%s'!"),$class);
+ if($value['IS_MUST_HAVE']){
+ $checks[$name]['STATUS'] = FALSE;
+ $checks[$name]['MSG'] = sprintf(_("Missing required object class '%s'!"),$class);
+ } else {
+ $checks[$name]['STATUS'] = TRUE;
+ $checks[$name]['MSG'] = sprintf(_("Missing optional object class '%s'!"),$class);
+ }
}elseif(!check_schema_version($objectclasses[$name],$value['REQUIRED_VERSION'])){
$checks[$name]['STATUS'] = FALSE;