Commit b933b4577a9ffb043c76d4716c6aa3434ae232da:
    proper handling of empty lists


Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
lib/whimsy/asf/ldap.rb                                       | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index efa92a2..a9e2503 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -134,7 +134,7 @@ def self.search_one(base, filter, attrs=nil)
 
     result.map! {|hash| hash[attrs]} if String === attrs
 
-    result
+    result.compact
   end
 
   # safely dereference a weakref array attribute.  Block provided is

Reply via email to