[svn r14960] Removed $a_students[] (duplicate and potentially using lots of memory as well)

skala
Yannick Warnier 17 years ago
parent 5db2db0bb2
commit 4e10288999
  1. 7
      main/mySpace/index.php

@ -480,7 +480,6 @@ if(api_is_allowed_to_create_course() && $view=='teacher')
get_lang('AvgAssignments')
);
$a_students = array();
$a_course_students = array();
foreach($a_courses as $course)
@ -503,8 +502,7 @@ if(api_is_allowed_to_create_course() && $view=='teacher')
$avg_time_spent_in_course += Tracking :: get_time_spent_on_the_course ($row['user_id'], $course_code);
$avg_messages_in_course += Tracking :: count_student_messages ($row['user_id'], $course_code);
$avg_assignments_in_course += Tracking :: count_student_assignments ($row['user_id'], $course_code);
$a_students[] = $row['user_id'];
$a_course_students = $row['user_id'];
$a_course_students[] = $row['user_id'];
}
// students subscribed to the course through a session
@ -526,8 +524,7 @@ if(api_is_allowed_to_create_course() && $view=='teacher')
$avg_time_spent_in_course += Tracking :: get_time_spent_on_the_course ($row['user_id'], $course_code);
$avg_messages_in_course += Tracking :: count_student_messages ($row['user_id'], $course_code);
$avg_assignments_in_course += Tracking :: count_student_assignments ($row['user_id'], $course_code);
$a_students[] = $row['user_id'];
$a_course_students = $row['user_id'];
$a_course_students[] = $row['user_id'];
}
}
}

Loading…
Cancel
Save