diff --git a/app/views/admin/admin_modules/_index.html.erb b/app/views/admin/admin_modules/_index.html.erb index 7cce46f..c29f186 100644 --- a/app/views/admin/admin_modules/_index.html.erb +++ b/app/views/admin/admin_modules/_index.html.erb @@ -22,8 +22,8 @@ <% else %> <%= rm.category.title %> <% end %> - <% user = User.find(rm.create_user_id) rescue "" %> - <%= user.name rescue user.user_name %> + <% user = User.find(rm.create_user_id) rescue nil %> + <%= user.name if !user.nil? rescue user.user_name %> <% if rm.approved %> Install