LSldap :: update() : Fixed bug when dropping empty attribute

This commit is contained in:
Benjamin Renard 2011-04-22 14:24:28 +02:00
parent 47e2c56907
commit 81ef2eaacf

View file

@ -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;
}