Remove unused variables - refs BT#12212

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent e6653a1182
commit e758782e1e
  1. 4
      main/mySpace/student.php
  2. 4
      main/mySpace/teachers.php
  3. 4
      main/mySpace/users.php

@ -120,7 +120,7 @@ function get_users($from, $limit, $column, $direction)
$courses = Tracking :: get_course_list_in_session_from_student($student_id, $sessionId);
}
$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) {
@ -133,8 +133,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++;
}
}

@ -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++;
}
}

@ -115,7 +115,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++;
}
}

Loading…
Cancel
Save