diff --git a/src/JotaworksDoiBundle/EventListener/FormSubscriber.php b/src/JotaworksDoiBundle/EventListener/FormSubscriber.php index 9c18ae5..74e7c90 100644 --- a/src/JotaworksDoiBundle/EventListener/FormSubscriber.php +++ b/src/JotaworksDoiBundle/EventListener/FormSubscriber.php @@ -119,7 +119,7 @@ private function shouldEmailBeSended($lead) $channel = $dnc->getChannel(); //user unsubscribed from email - if( DNC::UNSUBSCRIBE === $reason && $channel=="email" ) + if( DNC::UNSUBSCRIBED === $reason && $channel=="email" ) { return true; }