Permalink
Browse files

Change interval WEEK to MONTH so it is compatible with MySQL 4+

  • Loading branch information...
1 parent 4d01860 commit 2802861bafb0fda9472753d74f7589c54c0a7ef5 @pijulius committed Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/modules/newsletter.class.php
@@ -1536,7 +1536,7 @@ static function check($email, $listid = null, $subscriptionid = null) {
static function cleanUp() {
return sql::run(
" DELETE FROM `{newslettersubscriptions}`" .
- " WHERE `Confirmed` = 0 AND `TimeStamp` < DATE_SUB(NOW(), INTERVAL 1 WEEK)");
+ " WHERE `Confirmed` = 0 AND `TimeStamp` < DATE_SUB(NOW(), INTERVAL 1 MONTH)");
}
static function sendConfirmationEmail($subscriptionid, $emailid = 'NewsletterSubscribe') {

0 comments on commit 2802861

Please sign in to comment.