From 9043e54d54b5a9d59d284437c30305253c09595f Mon Sep 17 00:00:00 2001 From: Oscar Nadjar Date: Tue, 23 Jul 2024 13:20:12 -0500 Subject: [PATCH] DEF-2908: Fixing pipeline error --- classes/task/issue_certificates_task.php | 4 ++-- tests/email_certificate_task_test.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/task/issue_certificates_task.php b/classes/task/issue_certificates_task.php index fb1349c8..a3deb04f 100644 --- a/classes/task/issue_certificates_task.php +++ b/classes/task/issue_certificates_task.php @@ -97,13 +97,13 @@ public function execute() { } foreach ($customcerts as $customcert) { - + // Check if the certificate is hidden, quit early. $cm = get_course_and_cm_from_instance($customcert->id, 'customcert', $customcert->course)[1]; if (!$cm->visible) { continue; } - + // Do not process an empty certificate. $sql = "SELECT ce.* FROM {customcert_elements} ce diff --git a/tests/email_certificate_task_test.php b/tests/email_certificate_task_test.php index 778e337b..3b0b129c 100644 --- a/tests/email_certificate_task_test.php +++ b/tests/email_certificate_task_test.php @@ -340,7 +340,7 @@ public function test_email_certificates_others(): void { * Tests the email certificate task when the certificate is not visible. * * @covers \mod_customcert\task\issue_certificates_task - * @covers \mod_customcert\task\email_certificate_task + * @covers \mod_customcert\task\email_certificate_task */ public function test_email_certificates_students_not_visible(): void { global $DB;