mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +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 {
|
else {
|
||||||
if (!empty($dropAttr)) {
|
if (!empty($dropAttr)) {
|
||||||
foreach($dropAttr as $attr) {
|
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
|
// Attribut n'existe pas dans l'annuaire
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue