diff --git a/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php b/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php index 5472c7d93da..ec073b9a112 100644 --- a/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php +++ b/src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitEventProvider.php @@ -33,7 +33,7 @@ public function __construct(ManagerRegistry $registry) */ public function getCustomerEventAggregates(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -63,7 +63,7 @@ public function getCustomerEventAggregates(array $customers, array $eventNames) */ public function getCustomerEventsCountByDate(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -84,7 +84,7 @@ public function getCustomerEventsCountByDate(array $customers, array $eventNames */ public function getCustomerEventsCountByDateAndChannel(array $customers, array $eventNames) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return []; } @@ -109,7 +109,7 @@ public function getCustomerEventsCountByDateAndChannel(array $customers, array $ */ public function getMostViewedPage(array $customers = []) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return null; } @@ -128,7 +128,7 @@ public function getMostViewedPage(array $customers = []) */ public function getLastViewedPage(array $customers = []) { - if ($this->isFeaturesEnabled()) { + if (!$this->isFeaturesEnabled()) { return null; }