$currentgroup=''; } $list = $vpl->get_students($currentgroup); // var_dump (count($list)); $submissions = $vpl->all_last_user_submission(); $submissions_number = $vpl->get_submissions_number(); //Get all information $all_data = array(); $subCount=0; $gradeCount=0; $section_flag=0; $studentCount=0; $statusNum=0; foreach ($list as $userinfo) { if($vpl->is_group_activity() && $userinfo->id != $vpl->get_group_leaderid($userinfo->id)){ continue; } $submission = null; if(!isset($submissions[$userinfo->id])){ /*if($subselection != 'all'){ continue; }*/ $submission = null; } else{ $subinstance = $submissions[$userinfo->id]; $submission = new mod_vpl_submission_CE($vpl,$subinstance); $subid=$subinstance->id; $subinstance->gradesortable = null; if($subinstance->dategraded>0){