From 1c318b04045ab1713a5b761defbd0a7be766e511 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Tue, 19 Oct 2021 19:38:20 +0200 Subject: [PATCH] fix typo in https://develop.studip.de/trac/changeset/60202, fixes #346 --- app/controllers/course/basicdata.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/course/basicdata.php b/app/controllers/course/basicdata.php index cda28d74ec3..1df3a203343 100644 --- a/app/controllers/course/basicdata.php +++ b/app/controllers/course/basicdata.php @@ -703,7 +703,7 @@ class Course_BasicdataController extends AuthenticatedController } else { $sem = Seminar::getInstance($course_id); $deputy = Deputy::find([$deputy_id, $course_id]); - if ($deputy && $deputy->delete) { + if ($deputy && $deputy->delete()) { // Remove user from subcourses as well. if($sem->children) { $children_ids = $sem->children->pluck('seminar_id'); @@ -903,4 +903,4 @@ class Course_BasicdataController extends AuthenticatedController } return $sem_types; } -} \ No newline at end of file +} -- GitLab