Skip to content
Snippets Groups Projects
Commit 6b901857 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

Course::addMember: use german column names in SQL statement, fixes #4819

Closes #4819

Merge request studip/studip!3618
parent 98b83c28
No related branches found
No related tags found
No related merge requests found
...@@ -996,9 +996,9 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe ...@@ -996,9 +996,9 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
$stmt = $db->prepare( $stmt = $db->prepare(
"SELECT 1 "SELECT 1
FROM `user_inst` FROM `user_inst`
JOIN `seminar_inst` USING (`institute_id`) JOIN `seminar_inst` USING (`institut_id`)
WHERE `user_inst`.`user_id` = :user_id WHERE `user_inst`.`user_id` = :user_id
AND `seminar_inst`.`seminar_id` = :course_id" AND `seminar_inst`.`seminar_id` = :course_id"
); );
$stmt->execute([ $stmt->execute([
'course_id' => $this->id, 'course_id' => $this->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