From b8a7af272a72eb7f71123e0ad4a71eb4851b8acf Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 1 Mar 2013 12:38:26 +0100 Subject: [PATCH] Fix bug that made new subscriptions become 'cancelled' immediately --- public_html/modules/confirm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/modules/confirm.php b/public_html/modules/confirm.php index 037d1d1..4015d61 100644 --- a/public_html/modules/confirm.php +++ b/public_html/modules/confirm.php @@ -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);