]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
Fixes for rallye extension, refs are now no longer removed from rallye if ref was...
[mailer.git] / inc / modules / member / what-bonus.php
index 66ae60cb37ccf939fee6f73912e285e226bf802c..ddd819bbaec902cb13ef4cb003dbf0d8572664fd 100644 (file)
@@ -64,11 +64,10 @@ if (GET_EXT_VERSION("bonus") >= "0.6.9")
 
 // Autopurge installed?
 $LAST = "%s"; $ONLINE = "";
-if (EXT_IS_ACTIVE("autopurge"))
-{
+if (EXT_IS_ACTIVE("autopurge")) {
        // Use last online timestamp to keep inactive members away from here
-       $LAST   = " AND last_online >= %s";
-       $ONLINE = bigintval(time() - $_CONFIG['ap_inactive_since']);
+       $LAST   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
+       $ONLINE = $_CONFIG['ap_inactive_since'];
 }
 
 // Let's check if there are some points left we can "pay"...