diff --git a/trunk/conf/config.error_code.php b/trunk/conf/config.error_code.php index 767b7a7b..eb37f6f2 100644 --- a/trunk/conf/config.error_code.php +++ b/trunk/conf/config.error_code.php @@ -25,6 +25,10 @@ $GLOBALS['LSerror_code'] = array ( 'msg' => _("Erreur inconnue!"), 'level' => 'c' ), + 0 => array( + 'msg' => "%{msg}", + 'level' => 'c' + ), // LSldap 1 => array ( 'msg' => _("LSldap : Erreur durant la connexion au serveur LDAP (%{msg})."), @@ -46,6 +50,10 @@ $GLOBALS['LSerror_code'] = array ( 'msg' => _("LSldap : Erreur durant la mise à jour de l'entrée Ldap (DN : %{dn})."), 'level' => 'c' ), + 6 => array ( + 'msg' => _("LSldap : Erreur durant la suppression des attributs vides."), + 'level' => 'w' + ), // LSldapObject 21 => array ( diff --git a/trunk/includes/class/class.LSldap.php b/trunk/includes/class/class.LSldap.php index a160c036..9eedc008 100644 --- a/trunk/includes/class/class.LSldap.php +++ b/trunk/includes/class/class.LSldap.php @@ -274,7 +274,7 @@ class LSldap { if (Net_LDAP2::isError($ret)) { $GLOBALS['LSerror'] -> addErrorCode(5,$dn); - debug('NetLdap-Error : '.$ret->getMessage()); + $GLOBALS['LSerror'] -> addErrorCode(0,'NetLdap-Error : '.$ret->getMessage()); } else { if (!empty($dropAttr)) { @@ -283,8 +283,8 @@ class LSldap { } $ret = $entry -> update(); if (Net_LDAP2::isError($ret)) { - debug('Erreur durant la suppression des attributs vides'); - debug('NetLdap-Error : '.$ret->getMessage()); + $GLOBALS['LSerror'] -> addErrorCode(6); + $GLOBALS['LSerror'] -> addErrorCode(0,'NetLdap-Error : '.$ret->getMessage()); } } return true;