diff --git a/htdocs/update_confirm.php b/htdocs/update_confirm.php index 7d735a9..da0c52c 100644 --- a/htdocs/update_confirm.php +++ b/htdocs/update_confirm.php @@ -59,8 +59,9 @@ if (count($request['template']->getLDAPmodify(true))) { foreach ($request['template']->getAttribute('objectclass')->getValues() as $value) { $soc = $app['server']->getSchemaObjectClass($value); - foreach ($soc->getMustAttrs() as $sma) - array_push($mustattrs,$sma->getName()); + if ($soc) + foreach ($soc->getMustAttrs() as $sma) + array_push($mustattrs,$sma->getName()); } $counter = 0;