From 186279bab40197a6d97526505f1f7adf15a17685 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 11 Jul 2013 12:33:47 +0200 Subject: [PATCH] LSldap : fixed problem with empty attribute on adding --- public_html/includes/class/class.LSldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSldap.php b/public_html/includes/class/class.LSldap.php index dbe571bd..b6e5cbd8 100644 --- a/public_html/includes/class/class.LSldap.php +++ b/public_html/includes/class/class.LSldap.php @@ -321,7 +321,7 @@ class LSldap { LSerror :: addErrorCode(0,'NetLdap-Error : '.$ret->getMessage()); } else { - if (!empty($dropAttr)) { + if (!empty($dropAttr) && !$new) { foreach($dropAttr as $attr) { $value = $entry -> getValue($attr); if(Net_LDAP2::isError($value) || empty($value)) {