<课程首页>bug

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

View File

@ -90,10 +90,10 @@
</h3>
<% month_now = Time.now.strftime("%m").to_i %>
<% year_now = Time.new.strftime("%Y") %>
<% year_now = 2014 %>
<!-- 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, 2014, course_term) %>
<% @school_id.nil? ? cur_school_course = [] : cur_school_course = find_miracle_course(10,7,@school_id, year_now, course_term) %>
<% if cur_school_course.count == 0 %>
<span>