diff --git a/app/bundles/EmailBundle/EventListener/MatchFilterForLeadTrait.php b/app/bundles/EmailBundle/EventListener/MatchFilterForLeadTrait.php index cd466e0a97f..5d11ed6493b 100644 --- a/app/bundles/EmailBundle/EventListener/MatchFilterForLeadTrait.php +++ b/app/bundles/EmailBundle/EventListener/MatchFilterForLeadTrait.php @@ -22,7 +22,7 @@ protected function matchFilterForLead(array $filter, array $lead) $groupNum = 0; foreach ($filter as $data) { - $isCompanyField = (0 === strpos($data['field'], 'company') && 'company' !== $data['field']); + $isCompanyField = (0 === strpos((string) $data['field'], 'company') && 'company' !== $data['field']); $primaryCompany = ($isCompanyField && !empty($lead['companies'])) ? $lead['companies'][0] : null; if ($isCompanyField) {