diff --git a/app/bundles/EmailBundle/Controller/PublicController.php b/app/bundles/EmailBundle/Controller/PublicController.php index a6e84c21cbb..3190d5eacf3 100644 --- a/app/bundles/EmailBundle/Controller/PublicController.php +++ b/app/bundles/EmailBundle/Controller/PublicController.php @@ -334,11 +334,11 @@ public function resubscribeAction($idHash) /** @var \Mautic\LeadBundle\Model\LeadModel $leadModel */ $leadModel = $this->getModel('lead'); $leadModel->setCurrentLead($lead); - } - // Set lead lang - if ($lead->getPreferredLocale()) { - $this->translator->setLocale($lead->getPreferredLocale()); + // Set lead lang + if ($lead->getPreferredLocale()) { + $this->translator->setLocale($lead->getPreferredLocale()); + } } $model->removeDoNotContact($stat->getEmailAddress());