Fix show sessions with category on My Courses page - refs BT#9885 #TMI

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent 96dd9481e0
commit 048fbfd3bc
  1. 6
      main/inc/lib/userportal.lib.php

@ -1145,7 +1145,7 @@ class IndexManager
$session_category_id = $session_category['session_category']['id'];
// Sessions and courses that are not in a session category
if ($session_category_id == 0 &&
if (empty($session_category_id) &&
isset($session_category['sessions'])
) {
// Independent sessions
@ -1342,8 +1342,8 @@ class IndexManager
);
}
if ($session_now > $allowed_time &&
$coachAccessEndDate > $dif_time_after - 1
if ($session_now > $allowed_time //&&
//$coachAccessEndDate > $dif_time_after - 1
) {
if (api_get_setting('hide_courses_in_sessions') == 'false') {
$c = CourseManager:: get_logged_user_course_html(

Loading…
Cancel
Save