From ce5c54e58454e6274e84d7df12f9a48c68f1ffb5 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 19 Dec 2006 10:40:09 +0000 Subject: [PATCH] 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 --- include/class_ldap.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2