small fix
This commit is contained in:
parent
c319e600a3
commit
8e9e1f1609
|
@ -18,8 +18,10 @@ class AnnouncementsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (OrbitHelper.page_number == 1 or OrbitHelper.page_number.nil?) && !params["source"].present?
|
if !params["source"].present?
|
||||||
top_anns = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil], :is_top => true).and(:title.ne => nil).can_display.filter_by_categories([],false).to_a
|
if (OrbitHelper.page_number == 1 or OrbitHelper.page_number.nil?)
|
||||||
|
top_anns = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil], :is_top => true).and(:title.ne => nil).can_display.filter_by_categories([],false).to_a
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if !feeds_anns.blank?
|
if !feeds_anns.blank?
|
||||||
announcements = announcements.concat(feeds_anns)
|
announcements = announcements.concat(feeds_anns)
|
||||||
|
|
Loading…
Reference in New Issue