From 2e50a1656737bb96c252bbf957a372a3bf8eb286 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sat, 4 Jan 2014 01:52:18 +0100 Subject: [PATCH] fix bug in conversations view causing server error --- app/views/conversations/_conversation.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/conversations/_conversation.haml b/app/views/conversations/_conversation.haml index 65686ae92..cb8f419cc 100644 --- a/app/views/conversations/_conversation.haml +++ b/app/views/conversations/_conversation.haml @@ -7,7 +7,8 @@ .media .img - other_participants = ordered_participants[conversation.id] - [current_user.person] - = person_image_tag(other_participants.first) + - if other_participants.first.present? + = person_image_tag(other_participants.first) .bg .badge.badge-dafault.message_count