Fix for when invalid objectclass entered

This commit is contained in:
Deon George 2009-07-12 22:02:19 +10:00
parent 5481f61ce3
commit 223086b58e

View File

@ -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;