diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 6e56b57c..97e368fa 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -179,7 +179,7 @@ class StatsController < ApplicationController @actions_open_per_week_array = convert_to_weeks_running_from_today_array(@actions_started, @max_weeks+1) @actions_open_per_week_array = cut_off_array(@actions_open_per_week_array, @count) - @max_actions = @actions_open_per_week_array.max + @max_actions = (@actions_open_per_week_array.max or 0) render :layout => false end