From: hickert Date: Mon, 25 Feb 2008 07:53:21 +0000 (+0000) Subject: Reverted functions.inc change. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8489c5b2c590884da4df8d34dd012361e4768de9;p=gosa.git Reverted functions.inc change. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9093 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 1365bc7ec..70ab363ac 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2632,8 +2632,10 @@ function remove_objectClass($classes, &$attrs) $tmp= array(); foreach ($attrs['objectClass'] as $oc) { - if(!in_array($oc, $list)){ - $tmp[]= $oc; + foreach ($list as $class){ + if ($oc != $class){ + $tmp[]= $oc; + } } } $attrs['objectClass']= $tmp;