diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index cdbe05ad2c..caf9e92f8c 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -964,7 +964,7 @@ if (api_get_setting('allow_terms_conditions') === 'true') { $details = false; -if(!empty($courseInfo)) { +if (!empty($courseInfo)) { $nb_assignments = Tracking::count_student_assignments($student_id, $course_code, $sessionId); $messages = Tracking::count_student_messages($student_id, $course_code, $sessionId); $links = Tracking::count_student_visited_links($student_id, $courseInfo['real_id'], $sessionId); diff --git a/main/work/work.lib.php b/main/work/work.lib.php index b798378f76..5b84d1da34 100755 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -3753,7 +3753,7 @@ function sendAlertToUsers($workId, $courseInfo, $sessionId) if ($send == SEND_EMAIL_EVERYONE || $send == SEND_EMAIL_STUDENTS) { // Send mail only to sender $studentList = [[ - 'user_id' => api_get_user_id() + 'user_id' => api_get_user_id(), ]]; $userList = array_merge($userList, $studentList); }