# HG changeset patch # User Chris Cannam # Date 1352733467 0 # Node ID e3f78fa30a3603000c432aa7938de8c88db355bc # Parent b98f60a6d231b660b56273ce7b631fb8cd6d7fa0 Again avoid bombing out when faced with odd events diff -r b98f60a6d231 -r e3f78fa30a36 app/controllers/activities_controller.rb --- a/app/controllers/activities_controller.rb Mon Nov 12 14:55:11 2012 +0000 +++ b/app/controllers/activities_controller.rb Mon Nov 12 15:17:47 2012 +0000 @@ -44,6 +44,8 @@ if !@institution_name.blank? events = events.select do |e| e.respond_to?(:event_author) and e.event_author and + e.event_author.respond_to?(:ssamr_user_detail) and + !e.event_author.ssamr_user_detail.nil? and e.event_author.ssamr_user_detail.institution_name == @institution_name end if events.empty?