Browse Source

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

Angel Fernando Quiroz Campos 9 years ago
parent
commit
048fbfd3bc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/inc/lib/userportal.lib.php

+ 3 - 3
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(