Skip to content

Commit

Permalink
fixed bug in student progress (teacher view)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Oct 1, 2015
1 parent 9ced82d commit 73e1d51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions main/mySpace/myStudents.php
Expand Up @@ -353,13 +353,10 @@ function show_image(image,width,height) {

// get average of score and average of progress by student
$avg_student_progress = $avg_student_score = 0;
$course_code = isset($_GET['course']) ? Security :: remove_XSS($_GET['course']) : '';
$course_code = isset($_GET['course']) ? Security :: remove_XSS($_GET['course']) : null;

if (!CourseManager :: is_user_subscribed_in_course($user_info['user_id'], $course_code, true)) {
if (isset($courses[$key])) {
unset($courses[$key]);
}
} else {
if (CourseManager :: is_user_subscribed_in_course($user_info['user_id'], $course_code, true)) {

$avg_student_progress = Tracking::get_avg_student_progress(
$user_info['user_id'],
$course_code,
Expand Down

0 comments on commit 73e1d51

Please sign in to comment.