Fix new issue not showing course title in session block - refs BT#7075

1.9.x
Yannick Warnier 11 years ago
parent 10c4b7c60f
commit a13b080bbf
  1. 4
      main/inc/lib/course.lib.php

@ -3368,6 +3368,10 @@ class CourseManager
$date_start = $sess[$course_info['id_session']]['date_start']; $date_start = $sess[$course_info['id_session']]['date_start'];
$date_end = $sess[$course_info['id_session']]['date_end']; $date_end = $sess[$course_info['id_session']]['date_end'];
} }
if (empty($now)) {
// maybe use api_get_utcdate() here?
$now = date('Y-m-d h:i:s');
}
// Table definitions // Table definitions
$main_user_table = Database :: get_main_table(TABLE_MAIN_USER); $main_user_table = Database :: get_main_table(TABLE_MAIN_USER);

Loading…
Cancel
Save