From 31a385823cc0e34f7ea6d9f51c614a2c7e267477 Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Mon, 31 Mar 2014 21:57:56 +0100 Subject: [PATCH] Prevent errors when displaying flag icons for users that have not country set. --- app/views/gatherers/_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/gatherers/_list.html.erb b/app/views/gatherers/_list.html.erb index 11035ce..c38480a 100644 --- a/app/views/gatherers/_list.html.erb +++ b/app/views/gatherers/_list.html.erb @@ -15,7 +15,7 @@ <%= radio_button_tag :player, gatherer.id %><%= flag gatherer.user.country %> <%= namelink gatherer.user %> <% else %> - <%= flag gatherer.user.country %> + <%= flag(gatherer.user.country) if gatherer.user && gatherer.user.country %> <% if gatherer == captain and gatherer.team == gatherer.gather.turn %> » <% else %>