Skip to content

Commit

Permalink
Fix #49 prevent emails being sent if reengagment is being deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jan 16, 2019
1 parent ba14f56 commit c15d4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function reengagement_crontask() {
FROM {reengagement} r
INNER JOIN {course_modules} cm on cm.instance = r.id
JOIN {modules} m on m.id = cm.module
WHERE m.name = 'reengagement'
WHERE m.name = 'reengagement' AND cm.deletioninprogress = 0
ORDER BY r.id ASC";

$reengagements = $DB->get_recordset_sql($reengagementssql);
Expand Down

0 comments on commit c15d4da

Please sign in to comment.