mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSldap : fixed problem with empty attribute on adding
This commit is contained in:
parent
673a8600f8
commit
186279bab4
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class LSldap {
|
||||||
LSerror :: addErrorCode(0,'NetLdap-Error : '.$ret->getMessage());
|
LSerror :: addErrorCode(0,'NetLdap-Error : '.$ret->getMessage());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!empty($dropAttr)) {
|
if (!empty($dropAttr) && !$new) {
|
||||||
foreach($dropAttr as $attr) {
|
foreach($dropAttr as $attr) {
|
||||||
$value = $entry -> getValue($attr);
|
$value = $entry -> getValue($attr);
|
||||||
if(Net_LDAP2::isError($value) || empty($value)) {
|
if(Net_LDAP2::isError($value) || empty($value)) {
|
||||||
|
|
Loading…
Reference in a new issue