act有可能为空,导致500错误

This commit is contained in:
lizanle 2015-10-12 16:15:27 +08:00
parent cb4d62d3b6
commit 44b148b32f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@
$('#reply_content_<%= activity.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false});
});
</script>
<% if activity %>
<% if activity && activity.course_act%>
<% act = activity.course_act %>
<% case activity.course_act_type.to_s %>
<% when 'HomeworkCommon' %>