]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_profile.php
Extension ext-coupon continued, a lot improvements applied:
[mailer.git] / inc / daily / daily_profile.php
index 07a03447e6e031562ec4f954505fd6ae2c78d0c1..3e8e9a6d6412b4a12a008fea1dedf02f5d95ee7c 100644 (file)
@@ -59,13 +59,13 @@ FROM
 WHERE
        `status`='CONFIRMED' AND (
                (
-                       `last_update` < (UNIX_TIMESTAMP() - {?profile_update?}) AND
+                       (UNIX_TIMESTAMP() - `last_update`) >= {?profile_update?} AND
                        `last_update` > 0 AND
-                       `last_profile_sent` < (UNIX_TIMESTAMP() - {?resend_profile_update?})
+                       (UNIX_TIMESTAMP() - `last_profile_sent`) >= {?resend_profile_update?}
                ) OR (
                        `last_update` = 0 AND
                        `last_profile_sent` = 0 AND
-                       `joined` < (UNIX_TIMESTAMP() - {?profile_update?})
+                       (UNIX_TIMESTAMP() - `joined`) >= {?profile_update?}
                )
        )
 ORDER BY