|
@ -361,7 +361,7 @@ function certificate_cron () { |
|
|
from {course_completions} cc |
|
|
from {course_completions} cc |
|
|
inner join {user} u on u.id = cc.userid |
|
|
inner join {user} u on u.id = cc.userid |
|
|
where cc.course = ? |
|
|
where cc.course = ? |
|
|
and cc.timecompleted is not null |
|
|
and cc.timecompleted > 0 |
|
|
and cc.userid not in (select ci.userid |
|
|
and cc.userid not in (select ci.userid |
|
|
from {certificate_issues} ci |
|
|
from {certificate_issues} ci |
|
|
where ci.certificateid = ?) |
|
|
where ci.certificateid = ?) |
|
|