Browse Source

Fixes bug where reminder e-mails were sent to users that had deactivated their subscription.

master
Sven Slootweg 8 years ago
parent
commit
bf6f798df7
  1. 2
      public_html/cron.daily.php

2
public_html/cron.daily.php

@ -34,7 +34,7 @@ Currency::UpdateRates();
try
{
$sSubscriptions = Subscription::CreateFromQuery("SELECT * FROM subscriptions WHERE `Confirmed` = 1 AND `Active` = 1 AND `LastEmail` IS NULL OR `LastEmail` < DATE_SUB(NOW(), INTERVAL 1 MONTH)");
$sSubscriptions = Subscription::CreateFromQuery("SELECT * FROM subscriptions WHERE `Confirmed` = 1 AND `Active` = 1 AND (`LastEmail` IS NULL OR `LastEmail` < DATE_SUB(NOW(), INTERVAL 1 MONTH))");
}
catch (NotFoundException $e)
{

Loading…
Cancel
Save