X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-bonus.php;h=ddd819bbaec902cb13ef4cb003dbf0d8572664fd;hb=f9355ef19837da4e8cb88e0d6c0febf082a1824d;hp=66ae60cb37ccf939fee6f73912e285e226bf802c;hpb=e521a48cf5d2a3090bd8d7a9cb21dfbc2dfda257;p=mailer.git diff --git a/inc/modules/member/what-bonus.php b/inc/modules/member/what-bonus.php index 66ae60cb37..ddd819bbae 100644 --- a/inc/modules/member/what-bonus.php +++ b/inc/modules/member/what-bonus.php @@ -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"...