From 145827c3d2c6cb51c3c750b7531e6b33fff4aa8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org>
Date: Thu, 24 Oct 2019 10:39:57 +0200
Subject: [PATCH] :ambulance: fix(ldap) Fix wrong var name in LDAP rmdir DEBUG

issue #6042
---
 include/class_ldap.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index e8a002656..c8c7303d2 100644
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
@@ -659,11 +659,11 @@ class LDAP
       }
       $r = @ldap_delete($this->cid, $deletedn);
       $this->error = @ldap_error($this->cid);
-      @DEBUG(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->error, 'rmdir('.$dn.')');
+      @DEBUG(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->error, 'rmdir('.$deletedn.')');
       return ($r ? $r : 0);
     } else {
       $this->error = "Could not connect to LDAP server";
-      @DEBUG(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->error, 'rmdir('.$dn.')');
+      @DEBUG(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->error, 'rmdir('.$deletedn.')');
       return "";
     }
   }
-- 
GitLab