From 565186abb56513adacc6714f9918787490439535 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 2 May 2011 22:06:43 +0200 Subject: [PATCH] Fixing bug when taking a exam in the session view --- main/session/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/session/index.php b/main/session/index.php index 447aad60eb..b9521659f9 100644 --- a/main/session/index.php +++ b/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