Skip to content

Commit

Permalink
Merge branch 'hotfix/1.5.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed May 28, 2019
2 parents 5823680 + 95f5308 commit 3c515a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/ModuleNewsletterActivateNotificationCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ protected function activateRecipient($token)
{
// Check the token
if (version_compare(VERSION, '4.7', '>=')) {
if (0 !== strncmp($token, 'nl-', 3)) {
return;
}

/** @var \Contao\CoreBundle\OptIn\OptIn $optIn */
$optIn = \System::getContainer()->get('contao.opt-in');

Expand Down

0 comments on commit 3c515a5

Please sign in to comment.