We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba65827 commit 869d7bcCopy full SHA for 869d7bc
classes/task/issue_certificates_task.php
@@ -83,7 +83,7 @@ public function execute() {
83
// Add condition based on certificate execution period.
84
if ($certificateexecutionperiod > 0) {
85
// Include courses with no end date or end date greater than the specified period.
86
- $sql .= " AND (co.enddate > :enddate OR (co.enddate = 0 AND ci.timecreated > :enddate2))";
+ $sql .= " AND (co.enddate > :enddate OR (co.enddate = 0 AND (ci.timecreated > :enddate2 OR ci.timecreated IS NULL)))";
87
$params['enddate'] = time() - $certificateexecutionperiod;
88
$params['enddate2'] = $params['enddate'];
89
}
0 commit comments