Fix bug that made new subscriptions become 'cancelled' immediately

master
Sven Slootweg 12 years ago
parent d79be82b8d
commit b8a7af272a

@ -18,6 +18,7 @@ try
$sSubscription = Subscription::CreateFromQuery("SELECT * FROM subscriptions WHERE `EmailAddress` = :EmailAddress AND `ConfirmationKey` = :ConfirmationKey AND `Confirmed` = 0",
array(":EmailAddress" => $router->uParameters[1], ":ConfirmationKey" => $router->uParameters[2]), 0, true);
$sSubscription->uIsConfirmed = true;
$sSubscription->uIsActive = true;
$sSubscription->InsertIntoDatabase();
$sLogEntry = new LogEntry(0);

Loading…
Cancel
Save