|
|
|
@ -116,7 +116,7 @@ function get_users($from, $limit, $column, $direction) |
|
|
|
|
$courses = Tracking :: get_course_list_in_session_from_student($student_id, $_GET['id_session']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$avg_time_spent = $avg_student_score = $avg_student_progress = $total_assignments = $total_messages = 0; |
|
|
|
|
$avg_time_spent = $avg_student_score = $avg_student_progress = 0; |
|
|
|
|
$nb_courses_student = 0; |
|
|
|
|
if (!empty($courses)) { |
|
|
|
|
foreach ($courses as $course_code) { |
|
|
|
@ -129,8 +129,6 @@ function get_users($from, $limit, $column, $direction) |
|
|
|
|
$avg_student_score += $my_average; |
|
|
|
|
} |
|
|
|
|
$avg_student_progress += Tracking :: get_avg_student_progress($student_id, $course_code); |
|
|
|
|
$total_assignments += Tracking :: count_student_assignments($student_id, $course_code); |
|
|
|
|
$total_messages += Tracking :: count_student_messages($student_id, $course_code); |
|
|
|
|
$nb_courses_student++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|