Browse Source

Fixed error on stats page due to nil food option

development
Godwin 8 years ago
committed by GitHub
parent
commit
48a5c2ce90
  1. 6
      app/controllers/conferences_controller.rb

6
app/controllers/conferences_controller.rb

@ -438,8 +438,10 @@ class ConferencesController < ApplicationController
@bikes += 1 if r.bike == 'yes'
@food[r.food.to_sym] += 1
@food[:all] += 1
if r.food.present?
@food[r.food.to_sym] += 1
@food[:all] += 1
end
if r.registration_fees_paid.present? && r.registration_fees_paid > 0
@donation_count += 1

Loading…
Cancel
Save