act有可能为空,导致500错误
This commit is contained in:
parent
cb4d62d3b6
commit
44b148b32f
|
@ -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' %>
|
||||
|
|
Loading…
Reference in New Issue