From 40fca260e84d460a6ea7d7be82c29d6de4d2a3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Wed, 10 Aug 2016 14:52:29 +0200 Subject: [PATCH] Fixes #5057 Check the right var --- include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.inc b/include/functions.inc index 58492019a..a6aabb2f5 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2634,7 +2634,7 @@ function check_schema($cfg) foreach ($checks as $name => $value) { foreach ($value['CLASSES_REQUIRED'] as $class) { - if (!isset($objectclasses[$name])) { + if (!isset($objectclasses[$class])) { $checks[$name]['STATUS'] = FALSE; if ($value['IS_MUST_HAVE']) { $checks[$name]['MSG'] = sprintf(_('Missing required object class "%s"!'), $class); -- GitLab