소스 검색

Fixing bug when taking a exam in the session view

Julio Montoya 14 년 전
부모
커밋
565186abb5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      main/session/index.php

+ 2 - 1
main/session/index.php

@@ -84,8 +84,9 @@ if (!empty($new_session_list)) {
             
             //Get all courses by session where I'm subscribed
             $my_course_list = UserManager::get_courses_list_by_session(api_get_user_id(), $my_session_id);            
-            $course = array();        
+                   
             foreach ($my_course_list as $my_course) {
+                $course = array();
             
                 $course_info   = api_get_course_info($my_course['code']);
                 //Getting all exercises from the current course