diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-20 15:29:45 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-10-07 10:28:13 -0700 |
commit | 7e3eb257babed7317a90e0ad62ca810108e28646 (patch) | |
tree | 25ffd2d612f98885f376ac0532d489a1fab1283c | |
parent | f610fea7771f09067c5ee76468d07e217794934e (diff) | |
download | gitlab-ce-7e3eb257babed7317a90e0ad62ca810108e28646.tar.gz |
Fix for null DN
-rw-r--r-- | lib/gitlab/ldap/dn.rb | 2 |
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 |