From c8661285c76be9267fededf09c4ca5aa28c5962a Mon Sep 17 00:00:00 2001 From: Godwin Date: Tue, 30 Aug 2016 08:17:25 -0700 Subject: [PATCH] Fixed error on Schedule page --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e3c50f6..50ceda4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -573,7 +573,7 @@ class ApplicationController < LinguaFrancaApplicationController @schedule.each do | day, data | @schedule[day][:times] = data[:times].sort.to_h if do_analyze || @schedule[day][:locations].empty? - @schedule[day][:locations] ||= [] + @schedule[day][:locations] ||= {} @schedule[day][:locations][0] = :add end