]> source.dussan.org Git - redmine.git/commitdiff
Fixed test failure introduced by r14366.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Jun 2015 19:28:38 +0000 (19:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 21 Jun 2015 19:28:38 +0000 (19:28 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14368 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/member.rb

index ef8c82a1e55a114c02f0f2686e48342de3560faf..79e9eeca618ca92e497de56945f3d62be509972f 100644 (file)
@@ -71,8 +71,8 @@ class Member < ActiveRecord::Base
       else
         1
       end
-    elsif a
-      a <=> b
+    elsif a.any?
+      b.any? ? a <=> b : -1
     else
       1
     end