提交 7e3eb257 编写于 作者: M Michael Kozono

Fix for null DN

上级 f610fea7
...@@ -202,7 +202,7 @@ module Gitlab ...@@ -202,7 +202,7 @@ module Gitlab
# Returns the DN as an array in the form expected by the constructor. # Returns the DN as an array in the form expected by the constructor.
def to_a def to_a
a = [] a = []
self.each_pair { |key, value| a << key << value } self.each_pair { |key, value| a << key << value } unless @dn.empty?
a a
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册