Skip to content

Commit

Permalink
Fixed issue #09174: OPTOUTURL from invitation email not working si Em…
Browse files Browse the repository at this point in the history
…ailStatuts is not exactly on "OK"

Dev: test if emailstatus start by OptOut (allowing to enter some more information)
Dev: set OptOut even if email is set to Bounced ?
  • Loading branch information
Shnoulle committed Sep 3, 2014
1 parent fce40b6 commit 726d755
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application/controllers/OptoutController.php
Expand Up @@ -73,7 +73,7 @@ function actiontokens()
}
else
{
if ($oToken->emailstatus == 'OK')
if (substr($oToken->emailstatus, 0, strlen('OptOut')) !== 'OptOut')
{
$oToken->emailstatus = 'OptOut';
$oToken->save();
Expand Down Expand Up @@ -148,7 +148,7 @@ function actionparticipants()
}
else
{
if ($oToken->emailstatus == 'OK')
if (substr($oToken->emailstatus, 0, strlen('OptOut')) !== 'OptOut')
{
$oToken->emailstatus = 'OptOut';
$oToken->save();
Expand All @@ -166,7 +166,8 @@ function actionparticipants()
{
$sMessage .= "<br />";
$sMessage .= $clang->gT("You have already been removed from the central participants list for this site");
} else
}
else
{
$oParticipant->blacklisted='Y';
$oParticipant->save();
Expand Down

0 comments on commit 726d755

Please sign in to comment.