@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | foreach ($sessionCourses as $sessionCourse) { |
| 44 | 44 | $course = $sessionCourse->getCourse(); |
| 45 | - $coursesInfo[$course->getId()] = $course->getCode(); |
|
| 45 | + $coursesInfo[$course->getId()] = $course->getCode(); |
|
| 46 | 46 | $criteria = Criteria::create()->where( |
| 47 | 47 | Criteria::expr()->eq("status", Session::STUDENT) |
| 48 | 48 | ); |
@@ -65,21 +65,21 @@ discard block |
||
| 65 | 65 | ]; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - $usersInfo[$user->getId()][$course->getId() . '_score'] = null; |
|
| 69 | - $usersInfo[$user->getId()][$course->getId() . '_progress'] = null; |
|
| 70 | - $usersInfo[$user->getId()][$course->getId() . '_last_sent_date'] = null; |
|
| 68 | + $usersInfo[$user->getId()][$course->getId().'_score'] = null; |
|
| 69 | + $usersInfo[$user->getId()][$course->getId().'_progress'] = null; |
|
| 70 | + $usersInfo[$user->getId()][$course->getId().'_last_sent_date'] = null; |
|
| 71 | 71 | |
| 72 | 72 | if (!$session->hasStudentInCourse($user, $course)) { |
| 73 | 73 | continue; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - $usersInfo[$user->getId()][$course->getId() . '_score'] = Tracking::get_avg_student_score( |
|
| 76 | + $usersInfo[$user->getId()][$course->getId().'_score'] = Tracking::get_avg_student_score( |
|
| 77 | 77 | $user->getId(), |
| 78 | 78 | $course->getCode(), |
| 79 | 79 | null, |
| 80 | 80 | $session->getId() |
| 81 | 81 | ); |
| 82 | - $usersInfo[$user->getId()][$course->getId() . '_progress'] = Tracking::get_avg_student_progress( |
|
| 82 | + $usersInfo[$user->getId()][$course->getId().'_progress'] = Tracking::get_avg_student_progress( |
|
| 83 | 83 | $user->getId(), |
| 84 | 84 | $course->getCode(), |
| 85 | 85 | null, |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | continue; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - $usersInfo[$user->getId()][$course->getId() . '_last_sent_date'] = api_format_date( |
|
| 95 | + $usersInfo[$user->getId()][$course->getId().'_last_sent_date'] = api_format_date( |
|
| 96 | 96 | $lastPublication->getSentDate()->getTimestamp(), |
| 97 | 97 | DATE_TIME_FORMAT_SHORT |
| 98 | 98 | ); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | $interbreadcrumb[] = [ |
| 104 | - 'url' => api_get_path(WEB_CODE_PATH) . 'mySpace/index.php', |
|
| 104 | + 'url' => api_get_path(WEB_CODE_PATH).'mySpace/index.php', |
|
| 105 | 105 | 'name' => get_lang('MySpace') |
| 106 | 106 | ]; |
| 107 | 107 | |