Code

Removed objectClass remove
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 04:58:51 +0000 (04:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 04:58:51 +0000 (04:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3617 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servGeneric.inc

index 78decf860e24cc61307ff4a35aab029df3f9f4db..9c0f48cd1f442c63d0434f2fffc556b7810f816f 100644 (file)
@@ -94,7 +94,6 @@ class servgeneric extends plugin
           }
 
           for($i = 0; $i < $res['objectClass']['count'] ; $i ++){
-            if(($attrs['FAIstate'] == "") && ($res['objectClass'][$i] == "FAIobject")) continue;
             $attrs['objectClass'][] = $res['objectClass'][$i];
           }
 
@@ -103,9 +102,10 @@ class servgeneric extends plugin
           }
 
           if($attrs['FAIstate'] == ""){
+            #FIXME we should check if FAIobject is used anymore
             $attrs['FAIstate'] = array();
           }
-     
           $ldap->cd($this->dn);
           $ldap->modify($attrs);
           show_ldap_error($ldap->get_error());