summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ldap/dn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/dn.rb b/lib/gitlab/ldap/dn.rb
index f62d36101c4..60e2ba96587 100644
--- a/lib/gitlab/ldap/dn.rb
+++ b/lib/gitlab/ldap/dn.rb
@@ -202,7 +202,7 @@ module Gitlab
# Returns the DN as an array in the form expected by the constructor.
def to_a
a = []
- self.each_pair { |key, value| a << key << value }
+ self.each_pair { |key, value| a << key << value } unless @dn.empty?
a
end