small fix

This commit is contained in:
Harry Bomrah 2017-07-25 15:35:47 +08:00
parent e012d9d337
commit 5c03141532
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div class="ticket-response-meta">
<div class="ticket-response-author">
<% user = User.find(response.response_by) rescue nil %>
<% if user.member_profile.avatar.nil? || user.member_profile.avatar.thumb.url == "thumb_person.png"
<% if user.nil? || user.member_profile.avatar.nil? || user.member_profile.avatar.thumb.url == "thumb_person.png"
avatar = "/assets/thumb_person.png"
else
avatar = user.member_profile.avatar.thumb.url