Fix bug where newsletter subscribers couldn't uncheck an option

This commit is contained in:
Alex Cabal 2022-06-17 11:13:15 -05:00
parent ed4ef9c646
commit 69df5ac43a

View file

@ -33,8 +33,8 @@ try{
$subscriber->FirstName = HttpInput::Str(POST, 'firstname', false);
$subscriber->LastName = HttpInput::Str(POST, 'lastname', false);
$subscriber->Email = HttpInput::Str(POST, 'email', false);
$subscriber->IsSubscribedToNewsletter = HttpInput::Bool(POST, 'newsletter');
$subscriber->IsSubscribedToSummary = HttpInput::Bool(POST, 'monthlysummary');
$subscriber->IsSubscribedToNewsletter = HttpInput::Bool(POST, 'newsletter', false);
$subscriber->IsSubscribedToSummary = HttpInput::Bool(POST, 'monthlysummary', false);
$captcha = $_SESSION['captcha'] ?? null;