From 73f27f48ae27fe6a8a6ad7f5b8b20e9994dd3722 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 7 Feb 2016 18:46:44 +0100 Subject: [PATCH] Improved error handling. --- lib/sessions/backend/ticket_overview_list.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sessions/backend/ticket_overview_list.rb b/lib/sessions/backend/ticket_overview_list.rb index 04ee027db..7b14aede7 100644 --- a/lib/sessions/backend/ticket_overview_list.rb +++ b/lib/sessions/backend/ticket_overview_list.rb @@ -14,6 +14,7 @@ class Sessions::Backend::TicketOverviewList overviews = Ticket::Overviews.all( current_user: @user, ) + return if !overviews result = [] overviews.each { |overview| overview_data = Ticket::Overviews.list(