修复课程主页没有2015年课程

This commit is contained in:
sw 2015-03-02 17:31:04 +08:00
parent d999a9f4a6
commit 90d9e77b32
1 changed files with 2 additions and 2 deletions

View File

@ -96,11 +96,11 @@
year_now -= 1
course_term = "秋季学期"
elsif month_now < 9
course_term = "季学期"
course_term = "季学期"
end
%>
<%# (month_now >= 3 && month_now < 9) ? course_term = "春季学期" : course_term = "秋季学期" %>
<% @school_id.nil? ? cur_school_course = [] : cur_school_course = find_miracle_course(10,7,@school_id, year_now, course_term) %>
<% cur_school_course = @school_id.nil? ? [] : find_miracle_course(10,7,@school_id, year_now, course_term) %>
<% if cur_school_course.count == 0 %>
<span>