diff --git a/plugins/statistics/lib/statistics_block.rb b/plugins/statistics/lib/statistics_block.rb index 09a7985..62232d3 100644 --- a/plugins/statistics/lib/statistics_block.rb +++ b/plugins/statistics/lib/statistics_block.rb @@ -93,6 +93,7 @@ class StatisticsBlock < Block end def products + return [] unless environment.plugin_enabled?('ProductsPlugin') if owner.kind_of?(Environment) owner.products.where("profiles.enabled = true and profiles.visible = true").count elsif owner.kind_of?(Enterprise) -- libgit2 0.21.2