Let task complete rather than die when content review is disabled

This commit is contained in:
Julian Thomson 2023-03-20 22:18:10 +13:00
parent 3e5da529b3
commit 8f8c52ed6e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class ContentReviewEmails extends BuildTask
// If the $send_emails static has been set to false, don't run the task
if (!$this->config()->get('send_emails')) {
echo 'The Content review task has been disabled';
exit;
return;
}
$compatibility = ContentReviewCompatability::start();