// 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"...