Minor - Flint fixes

pull/3173/head
Julio Montoya 7 years ago
parent 29cc82f977
commit af019248ac
  1. 14
      main/mySpace/myStudents.php

@ -655,7 +655,6 @@ $isDrhOfCourse = CourseManager::isUserSubscribedInCourseAsDrh(
if (api_is_drh() && !api_is_platform_admin()) { if (api_is_drh() && !api_is_platform_admin()) {
if (!empty($student_id)) { if (!empty($student_id)) {
if (api_drh_can_access_all_session_content()) { if (api_drh_can_access_all_session_content()) {
} else { } else {
if (!$isDrhOfCourse) { if (!$isDrhOfCourse) {
if (api_is_drh() && if (api_is_drh() &&
@ -899,7 +898,6 @@ if (!empty($course_code)) {
); );
} }
// Display timezone if the user selected one and if the admin allows the use of user's timezone // Display timezone if the user selected one and if the admin allows the use of user's timezone
$timezone = null; $timezone = null;
$timezone_user = UserManager::get_extra_user_data_by_field( $timezone_user = UserManager::get_extra_user_data_by_field(
@ -962,7 +960,7 @@ if (api_get_setting('allow_terms_conditions') === 'true') {
$userInfo['legal'] = [ $userInfo['legal'] = [
'icon' => $icon, 'icon' => $icon,
'datetime' => $timeLegalAccept, 'datetime' => $timeLegalAccept,
'url_send' => $btn 'url_send' => $btn,
]; ];
} }
@ -979,7 +977,7 @@ $userInfo['tools'] = [
'links' => $links, 'links' => $links,
'chat_connection' => $chat_last_connection, 'chat_connection' => $chat_last_connection,
'documents' => $documents, 'documents' => $documents,
'upload_documents' => $uploaded_documents 'upload_documents' => $uploaded_documents,
]; ];
$tpl = new Template('', $tpl = new Template('',
@ -1045,7 +1043,6 @@ echo '<br><br>';
</div> </div>
<?php <?php
$exportCourseList = []; $exportCourseList = [];
$lpIdList = []; $lpIdList = [];
if (empty($details)) { if (empty($details)) {
@ -1919,10 +1916,8 @@ if (empty($details)) {
</div> </div>
'; ';
$csv_content[] = []; $csv_content[] = [];
$csv_content[] = [ $csv_content[] = [
get_lang('OtherTools'), get_lang('OtherTools'),
]; ];
@ -1951,11 +1946,8 @@ if (empty($details)) {
get_lang('ChatLastConnection'), get_lang('ChatLastConnection'),
$chat_last_connection, $chat_last_connection,
]; ];
} //end details } //end details
if ($allowMessages === true) { if ($allowMessages === true) {
// Messages // Messages
echo Display::page_subheader2(get_lang('Messages')); echo Display::page_subheader2(get_lang('Messages'));
@ -2030,6 +2022,4 @@ if ($export) {
exit; exit;
} }
Display::display_footer(); Display::display_footer();

Loading…
Cancel
Save