"checking for different cases in the object class, as suggested by Nigel Kukard <nkukard(at)lbsd.net> at the devel list"

This commit is contained in:
Ralf Becker 2008-05-19 05:34:11 +00:00
parent 3f6d4f41c2
commit 0d60e6f245

View File

@ -473,7 +473,8 @@ class addressbook_ldap
if(is_array($ldapContact['objectClass']) && count($ldapContact['objectClass']) > 0)
{
$newContact['objectclass'] = array_merge($newContact['objectclass'], $ldapContact['objectClass']);
$newContact['objectclass'] = array_unique(array_map('strtolower', // objectclasses my have different case
array_merge($newContact['objectclass'], $ldapContact['objectClass'])));
}
if(!ldap_delete($this->ds, $dn))