From ca17a5453a80a6bedf2af30bf1dfd068a5b77442 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 28 Dec 2020 11:51:56 +0200 Subject: [PATCH] fix warning --- application/Espo/Tools/LeadCapture/LeadCapture.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/Espo/Tools/LeadCapture/LeadCapture.php b/application/Espo/Tools/LeadCapture/LeadCapture.php index 46e619c515..b38c3b6a26 100644 --- a/application/Espo/Tools/LeadCapture/LeadCapture.php +++ b/application/Espo/Tools/LeadCapture/LeadCapture.php @@ -201,6 +201,8 @@ class LeadCapture $lead = $this->getLeadWithPopulatedData($leadCapture, $data); } + $campaign = null; + $campaingService = $this->serviceFactory->create('Campaign'); if ($leadCapture->get('campaignId')) {