Commit b459fe4d9302f6cca13b221080eb0fb3e6a94a5e
1 parent
105ef252
Exists in
master
and in
3 other branches
Fix bug on result profiles of communities_block
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/ext/communities_block.rb
... | ... | @@ -6,7 +6,7 @@ class CommunitiesBlock |
6 | 6 | result = get_visible_profiles |
7 | 7 | valid_communities_string = Community.get_valid_communities_string |
8 | 8 | |
9 | - result.each{|community| @scope.delete(community) unless eval(valid_communities_string)} | |
9 | + result.each{|community| result.delete(community) unless eval(valid_communities_string)} | |
10 | 10 | |
11 | 11 | result.slice(0..get_limit-1) |
12 | 12 | end | ... | ... |