修改《课程首页按年份显示》bug

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2015-01-01 09:38:21 +08:00
parent c1705bd65b
commit 43511c8e97
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@
<% year_now = Time.new.strftime("%Y") %>
<!-- 3-8月份为查找春季课程9-2月份为查找秋季课程 -->
<% (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) %>
<% @school_id.nil? ? cur_school_course = [] : cur_school_course = find_miracle_course(10,7,@school_id, 2014, course_term) %>
<% if cur_school_course.count == 0 %>
<span>