diff --git a/app/views/welcome/_course_list.html.erb b/app/views/welcome/_course_list.html.erb
index 8d0d6c40d..da6c0fbf0 100644
--- a/app/views/welcome/_course_list.html.erb
+++ b/app/views/welcome/_course_list.html.erb
@@ -25,8 +25,10 @@
<%= link_to course.school.name.try(:gsub, /(.+)$/, '\1'), options={:action => 'course', :school_id => course.school.id}, html_options={:method => 'get'} %>
<% end %>
(<%= course.members.count %>人)
- <%# files_count = course.attachments.count.to_s %>
- (<%= link_to "#{course.attachments.count.to_s}份", course_files_path(course) %>资料)
+ <% files_count = course.attachments.count %>
+ <% if files_count > 0%>
+ (<%= link_to "#{files_count.to_s}份", course_files_path(course) %>资料)
+ <% end %>
<% end %>