Преглед на файлове

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

Angel Fernando Quiroz Campos преди 9 години
родител
ревизия
048fbfd3bc
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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'];
                 $session_category_id = $session_category['session_category']['id'];
 
 
                 // Sessions and courses that are not in a session category
                 // Sessions and courses that are not in a session category
-                if ($session_category_id == 0 &&
+                if (empty($session_category_id) &&
                     isset($session_category['sessions'])
                     isset($session_category['sessions'])
                 ) {
                 ) {
                     // Independent 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') {
                                     if (api_get_setting('hide_courses_in_sessions') == 'false') {
                                         $c = CourseManager:: get_logged_user_course_html(
                                         $c = CourseManager:: get_logged_user_course_html(