Skip to content

Commit

Permalink
Issue catalyst#159: Fixed CI-CD Unit test error "trailing junk after …
Browse files Browse the repository at this point in the history
…parameter"
  • Loading branch information
niko-hoogeveen committed Nov 29, 2024
1 parent 57564af commit 3d03bd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/frequency.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3d03bd0

Please sign in to comment.