diff --git a/main/session/about.php b/main/session/about.php index 162aa5a287..53b71993f5 100644 --- a/main/session/about.php +++ b/main/session/about.php @@ -87,9 +87,8 @@ foreach ($sessionCourses as $sessionCourse) { ] ); - $courseDescription = $courseObjectives = $courseTopics = $courseMethodology = $courseMaterial = $courseResources = $courseAssesment = null; + $courseDescription = $courseObjectives = $courseTopics = $courseMethodology = $courseMaterial = $courseResources = $courseAssessment = ''; $courseCustom = []; - foreach ($courseDescriptionTools as $descriptionTool) { switch ($descriptionTool->getDescriptionType()) { case CCourseDescription::TYPE_DESCRIPTION: @@ -111,7 +110,7 @@ foreach ($sessionCourses as $sessionCourse) { $courseResources = $descriptionTool; break; case CCourseDescription::TYPE_ASSESMENT: - $courseAssesment = $descriptionTool; + $courseAssessment = $descriptionTool; break; case CCourseDescription::TYPE_CUSTOM: $courseCustom[] = $descriptionTool; @@ -128,21 +127,26 @@ foreach ($sessionCourses as $sessionCourse) { 'methodology' => $courseMethodology, 'material' => $courseMaterial, 'resources' => $courseResources, - 'assesment' => $courseAssesment, + 'assessment' => $courseAssessment, 'custom' => array_reverse($courseCustom), 'coaches' => $coachesData, - 'extra_fields' => $courseValues->getAllValuesForAnItem($sessionCourse->getId(), null, true) + 'extra_fields' => $courseValues->getAllValuesForAnItem( + $sessionCourse->getId(), + null, + true + ), ]; } -$sessionDates = SessionManager::parseSessionDates([ - 'display_start_date' => $session->getDisplayStartDate(), - 'display_end_date' => $session->getDisplayEndDate(), - 'access_start_date' => $session->getAccessStartDate(), - 'access_end_date' => $session->getAccessEndDate(), - 'coach_access_start_date' => $session->getCoachAccessStartDate(), - 'coach_access_end_date' => $session->getCoachAccessEndDate() -], +$sessionDates = SessionManager::parseSessionDates( + [ + 'display_start_date' => $session->getDisplayStartDate(), + 'display_end_date' => $session->getDisplayEndDate(), + 'access_start_date' => $session->getAccessStartDate(), + 'access_end_date' => $session->getAccessEndDate(), + 'coach_access_start_date' => $session->getCoachAccessStartDate(), + 'coach_access_end_date' => $session->getCoachAccessEndDate(), + ], true ); diff --git a/main/template/default/session/about.tpl b/main/template/default/session/about.tpl index aca842706b..9b45bec7e7 100644 --- a/main/template/default/session/about.tpl +++ b/main/template/default/session/about.tpl @@ -139,11 +139,11 @@ {% endif %} - {% if course_data.assesment %} + {% if course_data.assessment %}
-

{{ course_data.assesment.getTitle }}

+

{{ course_data.assessment.getTitle }}

- {{ course_data.assesment.getContent }} + {{ course_data.assessment.getContent }}
{% endif %}