From 8f8c52ed6ed480fca383f4e70c837317e60c8640 Mon Sep 17 00:00:00 2001 From: Julian Thomson Date: Mon, 20 Mar 2023 22:18:10 +1300 Subject: [PATCH] Let task complete rather than die when content review is disabled --- src/Tasks/ContentReviewEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/ContentReviewEmails.php b/src/Tasks/ContentReviewEmails.php index 92c3ee5..9dbe992 100644 --- a/src/Tasks/ContentReviewEmails.php +++ b/src/Tasks/ContentReviewEmails.php @@ -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();