Skip to content
Snippets Groups Projects
Commit f79a0f63 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings, fixes #4830

Closes #4830

Merge request studip/studip!3613
parent 1f6cc4e5
No related branches found
No related tags found
No related merge requests found
......@@ -2127,7 +2127,11 @@ class Course_MembersController extends AuthenticatedController
*/
private function sendToCourse(array $users, string $target_course_id, bool $move = false): array
{
$msg = [];
$msg = [
'succes' => [],
'failed' => [],
'existing' => [],
];
foreach ($users as $user_id) {
if (!CourseMember::exists([$target_course_id, $user_id])) {
$user = User::find($user_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment