small fix for nil user

This commit is contained in:
Harry Bomrah 2015-07-27 17:50:35 +08:00
parent e6917a2e37
commit 807b7cef84
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
<% else %>
<td width="20%"><%= rm.category.title %></td>
<% end %>
<% user = User.find(rm.create_user_id) %>
<% user = User.find(rm.create_user_id) rescue "" %>
<td width="20%"><%= user.name rescue user.user_name %></td>
<% if rm.approved %>
<td>