@ -1,4 +1,4 @@
<% if course && tag_list.empty? == false%>
<% if course && tag_list && tag_list.empty? == false%>
<span class="files_tag_icon" >
<a title=""
onclick="search_tag_attachment('<%= search_tag_attachment_course_files_path(course)%>','','<%= @q%>','<%= course.id%>');"