Fix for when invalid objectclass entered
This commit is contained in:
parent
5481f61ce3
commit
223086b58e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user