From 0553bfc1fa1243e4ddbd579396f789a0348b7a80 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Thu, 2 May 2019 10:03:34 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20bug=20que=20gerava=20?= =?UTF-8?q?certificados=20para=20usu=C3=A1rios=20que=20n=C3=A3o=20atendera?= =?UTF-8?q?m=20aos=20crit=C3=A9rios=20de=20conclus=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 2cab8fd..dda5309 100644 --- a/lib.php +++ b/lib.php @@ -361,7 +361,7 @@ function certificate_cron () { from {course_completions} cc inner join {user} u on u.id = cc.userid where cc.course = ? - and cc.timecompleted is not null + and cc.timecompleted > 0 and cc.userid not in (select ci.userid from {certificate_issues} ci where ci.certificateid = ?)