Change "continue" outside of loop to "return"
This commit is contained in:
parent
851ce4e77a
commit
7b03eceec9
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class email_certificate_task extends \core\task\scheduled_task {
|
||||||
|
|
||||||
// If there are no users to email we can return early.
|
// If there are no users to email we can return early.
|
||||||
if (!$issuedusers) {
|
if (!$issuedusers) {
|
||||||
continue;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a directory to store the PDF we will be sending.
|
// Create a directory to store the PDF we will be sending.
|
||||||
|
|
Loading…
Reference in a new issue