mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSldap :: update() : Fixed bug when dropping empty attribute
This commit is contained in:
parent
47e2c56907
commit
81ef2eaacf
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ class LSldap {
|
|||
else {
|
||||
if (!empty($dropAttr)) {
|
||||
foreach($dropAttr as $attr) {
|
||||
if(Net_LDAP2::isError($entry -> getValue($attr))) {
|
||||
$value = $entry -> getValue($attr);
|
||||
if(Net_LDAP2::isError($value) || empty($value)) {
|
||||
// Attribut n'existe pas dans l'annuaire
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue