lib/keepassx/database.rb in ruby-keepassx-0.2.0 vs lib/keepassx/database.rb in ruby-keepassx-0.2.1

- old
+ new

@@ -122,10 +122,10 @@ opts = {:title => opts.to_s} if opts.is_a? String or opts.is_a? Symbol match_number = opts.length items = [] opts.each do |k, v| - items += Array item_list.select { |e| e.send(k).eql?(v) } + items += Array(item_list.select { |e| e.send(k).eql?(v) }) end buffer = Hash.new 0 items.each do |e| buffer[e] += 1