From: hickert Date: Tue, 19 Dec 2006 10:40:09 +0000 (+0000) Subject: Only add FAIobject as objectClass if it is missing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce5c54e58454e6274e84d7df12f9a48c68f1ffb5;p=gosa.git Only add FAIobject as objectClass if it is missing git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5430 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index affcc67a9..49ae22154 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -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; }