mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- Correction bug [#1672] Les attributs vides ne sont pas supprimés
This commit is contained in:
parent
c6bcdfeafa
commit
6e8c58392d
1 changed files with 38 additions and 33 deletions
|
@ -281,6 +281,11 @@ class LSldap {
|
|||
foreach($dropAttr as $attr) {
|
||||
$entry -> delete($attr);
|
||||
}
|
||||
$ret = $entry -> update();
|
||||
if (Net_LDAP2::isError($ret)) {
|
||||
debug('Erreur durant la suppression des attributs vides');
|
||||
debug('NetLdap-Error : '.$ret->getMessage());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue