Skip to content

Commit

Permalink
Merge pull request #163 from catalyst-ca/MOODLE_403_STABLE
Browse files Browse the repository at this point in the history
Issue #159: Fixed CI-CD Unit test error "trailing junk after parameter"
  • Loading branch information
dmitriim authored Dec 2, 2024
2 parents e0a155e + 3d03bd0 commit 8dd7433
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 8dd7433

Please sign in to comment.