diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb
index 305eaaa29..05ee7e086 100644
--- a/app/views/layouts/base_courses.html.erb
+++ b/app/views/layouts/base_courses.html.erb
@@ -90,9 +90,9 @@
<% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%>
- <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course)%>
+ <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%>
- <% elsif User.current && @course.tea_id != User.current.id && @course.is_public?%>
+ <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%>
<%else%>
<%end %>