Browse Source

Show only visible exercises see BT#8699

Julio Montoya 10 years ago
parent
commit
501e5bb157
1 changed files with 9 additions and 2 deletions
  1. 9 2
      main/session/index.php

+ 9 - 2
main/session/index.php

@@ -68,8 +68,15 @@ if (!empty($new_session_list)) {
 
                 $course_info   = api_get_course_info($my_course['code']);
 
-                //Getting all exercises from the current course
-                $exercise_list = get_all_exercises($course_info, $my_session_id, true);
+                // Getting all visible exercises from the current course
+                $exercise_list = get_all_exercises(
+                    $course_info,
+                    $my_session_id,
+                    true,
+                    null,
+                    false,
+                    1
+                );
 
                 $course['name'] = $course_info['name'];
                 $course['id']   = $course_info['real_id'];