]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Extension ext-coupon continued, a lot improvements applied:
[mailer.git] / inc / libs / rallye_functions.php
index 99c029890f7c38938072886f53007913bd52c03a..1d50a4d95c23f48e3f9e9a656f89906719cbe56f 100644 (file)
@@ -771,7 +771,7 @@ function purgeExpiredReferalRallyes () {
 FROM
        `{?_MYSQL_PREFIX?}_rallye_data`
 WHERE
-       `end_time` <= (UNIX_TIMESTAMP() - {?ONE_DAY?} - %s) AND
+       (UNIX_TIMESTAMP() - `end_time`) > ({?ONE_DAY?} * %s) AND
        `expired`='Y'",
                array($EXPIRE), __FUNCTION__, __LINE__);