Fix bug where an incorrect CampaignId was stored for an unsubscribe event

master
Sven Slootweg 12 years ago
parent be8b30472c
commit 87005e4a6a

@ -22,7 +22,7 @@ if(!empty($_POST['submit']))
$sLogEntry->uType = LogEntry::UNSUBSCRIPTION;
$sLogEntry->uIp = $_SERVER['REMOTE_ADDR'];
$sLogEntry->uData = json_encode(array("email" => $sSubscription->sEmailAddress));
$sLogEntry->uCampaignId = $sCampaign->sId;
$sLogEntry->uCampaignId = $sSubscription->sCampaign->sId;
$sLogEntry->uDate = time();
$sLogEntry->uSessionId = session_id();
$sLogEntry->InsertIntoDatabase();

Loading…
Cancel
Save