Skip to content

Commit

Permalink
Remove active state
Browse files Browse the repository at this point in the history
  • Loading branch information
de-es authored Jul 5, 2024
1 parent ee896f8 commit 905a3ad
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Terminal42\NotificationCenterBundle\Controller\FrontendModule\Newsletter;

use Contao\CoreBundle\ContaoCoreBundle;
use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule;
use Contao\Environment;
use Contao\Idna;
Expand Down Expand Up @@ -53,10 +52,6 @@ protected function addRecipient($strEmail, $arrNew): void
$objRecipient->pid = $id;
$objRecipient->tstamp = $time;
$objRecipient->email = $strEmail;
$objRecipient->active = false;
if (version_compare(ContaoCoreBundle::getVersion(), '5.0', '<')) {
$objRecipient->active = '';
}
$objRecipient->addedOn = $time;
$objRecipient->save();

Expand Down

0 comments on commit 905a3ad

Please sign in to comment.