Browse Source

Correção de bug que gerava certificados para usuários que não atenderam aos critérios de conclusão

master
Matheus Garcia 6 years ago
parent
commit
0553bfc1fa
  1. 2
      lib.php

2
lib.php

@ -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 = ?)

Loading…
Cancel
Save