-
Bug
-
Resolution: Fixed
-
Minor
-
3.5.4, 3.6
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-64851-master -
In our Moodle 3.5 installation we have about 120 course badges. Many of them are related to invisible courses, but cron still checks them.
The problem seems to be in the query that select badges to review. (https://github.com/moodle/moodle/blob/MOODLE_35_STABLE/badges/cron.php#L53)
This part of the SQL query OR EXISTS (SELECT id FROM {course} WHERE visible = :visible AND startdate < :current) '; doesn’t seem to filter anything because is always true.