diff --git a/app/views/courses/_course_activity.html.erb b/app/views/courses/_course_activity.html.erb index e2e1dcfc2..44b72868d 100644 --- a/app/views/courses/_course_activity.html.erb +++ b/app/views/courses/_course_activity.html.erb @@ -94,7 +94,7 @@ $('#reply_content_<%= activity.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); }); - <% if activity %> + <% if activity && activity.course_act%> <% act = activity.course_act %> <% case activity.course_act_type.to_s %> <% when 'HomeworkCommon' %>