diff --git a/classes/frequency.php b/classes/frequency.php index a08b3115..97e9158f 100644 --- a/classes/frequency.php +++ b/classes/frequency.php @@ -942,7 +942,7 @@ public function get_events_due_by_month(int $year, bool $cache = true): array { FROM {local_assessfreq_site} s LEFT JOIN {course} c ON s.courseid = c.id WHERE s.module $insql - AND s.endyear = ?"; + AND s.endyear = ? "; $includehiddencourses = get_config('local_assessfreq', 'hiddencourses'); if (!$includehiddencourses) { @@ -995,7 +995,7 @@ public function get_events_due_monthly_by_user(int $year, bool $cache = true): a INNER JOIN {local_assessfreq_user} u ON s.id = u.eventid INNER JOIN {course} c ON s.courseid = c.id WHERE s.module $insql - AND s.endyear = ?"; + AND s.endyear = ? "; $includehiddencourses = get_config('local_assessfreq', 'hiddencourses'); if (!$includehiddencourses) { @@ -1044,7 +1044,7 @@ public function get_events_due_by_activity(int $year, bool $cache = true): array $sql = 'SELECT s.module, COUNT(s.id) as count FROM {local_assessfreq_site} s LEFT JOIN {course} c ON s.courseid = c.id - WHERE s.endyear = ?'; + WHERE s.endyear = ? '; $includehiddencourses = get_config('local_assessfreq', 'hiddencourses'); if (!$includehiddencourses) {