Code

Only add FAIobject as objectClass if it is missing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Dec 2006 10:40:09 +0000 (10:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Dec 2006 10:40:09 +0000 (10:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5430 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index affcc67a902917d0917e8db73dda34b674f0f741..49ae221547f322c620710745d3765e2d54bc7307 100644 (file)
@@ -562,7 +562,9 @@ class LDAP{
               print_red(_("Unknown FAIstate %s"),$type);
             }
           }elseif(in_array("gosaApplication",$attr['objectClass'])){
-            $attr['objectClass'][] = "FAIobject";
+            if(!in_array("FAIobject",$attr['objectClass'])){
+              $attr['objectClass'][] = "FAIobject";
+            }
             $attr['FAIstate'] = $type;
           }