Merge branch 'filter_single_clauses' of https://github.com/Jamstah/ruby-net-ldap into jamstah-filter_single_clauses

This commit is contained in:
Austin Ziegler 2011-03-17 22:33:16 -04:00
commit 7ae8e28550
3 changed files with 13 additions and 8 deletions

View file

@ -696,7 +696,7 @@ class Net::LDAP::Filter
filter = nil
branches = parse_branches(scanner)
if branches.size >= 2
if branches.size >= 1
filter = branches.shift
while not branches.empty?
filter = filter.__send__(op, branches.shift)