From 94d91a49568938bac31f969516fae75783723932 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 27 Jul 2015 17:56:53 +0800 Subject: [PATCH] small fix --- app/views/admin/admin_modules/_index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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