From ea9a410e70ab492366cc0a3fd9ea603fb1a4264d Mon Sep 17 00:00:00 2001 From: Jan Jakes Date: Mon, 12 Sep 2022 07:40:07 +0200 Subject: [PATCH] Simplify condition [MAILPOET-4523] --- mailpoet/lib/Automation/Engine/Control/StepHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailpoet/lib/Automation/Engine/Control/StepHandler.php b/mailpoet/lib/Automation/Engine/Control/StepHandler.php index 945061e858..6293d3f250 100644 --- a/mailpoet/lib/Automation/Engine/Control/StepHandler.php +++ b/mailpoet/lib/Automation/Engine/Control/StepHandler.php @@ -127,7 +127,7 @@ class StepHandler { } // no need to schedule a new step if the next step is null, complete the run - if (empty($nextStepArgs[0]['step_id'])) { + if (!$nextStep) { $this->workflowRunStorage->updateStatus($workflowRunId, WorkflowRun::STATUS_COMPLETE); return; }