fix for no tags

This commit is contained in:
Harry Bomrah 2015-11-10 02:30:44 +08:00
parent 6502df721c
commit 8074c24b67
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ class AnnouncementFeedsController < ApplicationController
tags = bf.tag_ids
if !tags.empty?
announcements = Bulletin.can_display.is_approved.filter_by_tags(tags)
else
announcements = []
end
end
all_anns = []