Procházet zdrojové kódy

Fixing bug when taking a exam in the session view

Julio Montoya před 14 roky
rodič
revize
565186abb5
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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