diff options
Diffstat (limited to 'app/controllers/course/studygroup.php')
| -rw-r--r-- | app/controllers/course/studygroup.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/course/studygroup.php b/app/controllers/course/studygroup.php index c95c20e..30048e8 100644 --- a/app/controllers/course/studygroup.php +++ b/app/controllers/course/studygroup.php @@ -288,7 +288,7 @@ class Course_StudygroupController extends AuthenticatedController foreach ($tags as $tag) { $tag_ids[] = $tag->id; $relation = TagRelation::findOneBySQL( - "`range_id` = :course_id AND `range_type` = 'course' AND `tag_id` = :tag_id", + "`range_id` = :course_id AND `range_type` = 'course' AND `tag_id` = :tag_id", [ 'tag_id' => $tag->id, 'course_id' => $course->id @@ -303,7 +303,7 @@ class Course_StudygroupController extends AuthenticatedController } } TagRelation::deleteBySQL( - "`range_id` = :course_id AND `range_type` = 'course' AND `tag_id` NOT IN (:ids)", + "`range_id` = :course_id AND `range_type` = 'course' AND `tag_id` NOT IN (:ids)", [ 'ids' => $tag_ids, 'course_id' => $course->id @@ -446,7 +446,7 @@ class Course_StudygroupController extends AuthenticatedController $this->autors = $sem->getMembersWithStatus('autor'); $this->accepted = $sem->admission_applicants->findBy('status', 'accepted'); $this->sem_class = $sem->getSemClass(); - $this->invitedMembers = StudygroupModel::getInvitations($id); + $this->invitedMembers = StudygroupInvitation::findBySQL('sem_id = ? ORDER BY mkdate', $id); $this->rechte = $GLOBALS['perm']->have_studip_perm('tutor', $id); $this->page = null; $this->setupMembersSidebar($sem); |
