From 223086b58e35ba74fba6858a522fda2a03c5adf9 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 12 Jul 2009 22:02:19 +1000 Subject: [PATCH] Fix for when invalid objectclass entered --- htdocs/update_confirm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;