]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
- Surfbar further extended, currently broken!
[mailer.git] / inc / modules / member / what-bonus.php
index ca9002a7335dd9264fcee3e490b77a6439f694b4..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_in_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"...