From 8489c5b2c590884da4df8d34dd012361e4768de9 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Feb 2008 07:53:21 +0000 Subject: [PATCH] Reverted functions.inc change. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9093 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2