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

prevent php-warnings, closes #3496

Closes #3496

Merge request studip/studip!2390
parent 944bf0b9
No related branches found
No related tags found
No related merge requests found
......@@ -279,7 +279,7 @@ class Course_AdmissionController extends AuthenticatedController
$limit = $this->course->getNumWaiting() - $this->course->admission_waitlist_max;
$removed_applicants = $this->course->admission_applicants->findBy('status', 'awaiting')->orderBy('position desc', SORT_NUMERIC)->limit($limit);
}
if ($removed_applicants) {
if (!empty($removed_applicants)) {
$num_moved = 0;
foreach ($removed_applicants as $applicant) {
setTempLanguage($applicant->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