forked from saurabh/orbit4-5
small bug fix for feeds if feed module is not present.
This commit is contained in:
parent
bead39d5b4
commit
8b8dd22e88
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue