small bug fix for feeds if feed module is not present.

This commit is contained in:
Harry Bomrah 2015-07-09 14:20:49 +08:00
parent bead39d5b4
commit 8b8dd22e88
1 changed files with 3 additions and 0 deletions

View File

@ -384,6 +384,9 @@ module OrbitHelper
# get feeds for the module
def self.get_feed_for_module(type)
if ModuleApp.where(:key => "feed").count == 0
return []
end
categories = []
ma = nil
if type == "index"