From 5dc94a75257408d9400d9a2c068d64d2b1b498ea Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Wed, 22 May 2024 23:24:06 +0200 Subject: [PATCH] Typo fix --- classes/studyplan.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/studyplan.php b/classes/studyplan.php index 437342a..beeb8b8 100644 --- a/classes/studyplan.php +++ b/classes/studyplan.php @@ -671,7 +671,7 @@ class studyplan { $sql = "SELECT s.id FROM {local_treestudyplan} s INNER JOIN {local_treestudyplan_cohort} j ON j.studyplan_id = s.id INNER JOIN {cohort_members} cm ON j.cohort_id = cm.cohortid - INNER JOIN {user} u ON cm.userid = user.id + INNER JOIN {user} u ON cm.userid = u.id WHERE cm.userid = :userid AND u.deleted != 1"; $cohortplanids = $DB->get_fieldset_sql($sql, ['userid' => $userid]); @@ -705,7 +705,7 @@ class studyplan { $sql = "SELECT COUNT(s.id) FROM {local_treestudyplan} s INNER JOIN {local_treestudyplan_cohort} j ON j.studyplan_id = s.id INNER JOIN {cohort_members} cm ON j.cohort_id = cm.cohortid - INNER JOIN {user} u ON cm.userid = user.id + INNER JOIN {user} u ON cm.userid = u.id WHERE cm.userid = :userid AND u.deleted != 1"; $count += $DB->count_records_sql($sql, ['userid' => $userid]); @@ -759,7 +759,7 @@ class studyplan { // Next het users linked though cohort. $sql = "SELECT cm.userid FROM {local_treestudyplan_cohort} j INNER JOIN {cohort_members} cm ON j.cohort_id = cm.cohortid - INNER JOIN {user} u ON cm.userid = user.id + INNER JOIN {user} u ON cm.userid = u.id WHERE j.studyplan_id = :planid AND u.deleted != 1"; $ulist = $DB->get_fieldset_sql($sql, ['planid' => $this->id]);