Code

Reverted functions.inc change.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 07:53:21 +0000 (07:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Feb 2008 07:53:21 +0000 (07:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9093 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 1365bc7ecf3155eed624a69eb4a1b2e050696b5d..70ab363acedfc872f34830b1a1dd11b2ae7d51fc 100644 (file)
@@ -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;