diff --git a/app/views/admin/latest_login_users.html.erb b/app/views/admin/latest_login_users.html.erb
index a9e8e2feb..23a619389 100644
--- a/app/views/admin/latest_login_users.html.erb
+++ b/app/views/admin/latest_login_users.html.erb
@@ -92,15 +92,7 @@
<% end%>
- <% unless user.user_extensions.nil? %>
- <% if user.user_extensions.identity.to_i == 0 %>
-
- <% occupation = user.user_extensions.school_id.nil? ? "" : (School.where("id =?", user.user_extensions.school_id)).first.try(:name) %>
- <%= occupation.blank? ? user.user_extensions.occupation : occupation %>
- <% else %>
- <%= user.user_extensions.occupation %>
- <% end %>
- <% end %>
+ <%= user.user_extensions.school_id.nil? ? "" : (School.find user.user_extensions.school_id).try(:name) %>
|
<% end %>