- // Let's check if there are some points left we can 'pay'...
- if (isExtensionActive('autopurge')) {
- // Use last online stamp only when autopurge for inactive members is activated
- if ((getApInactiveSince() > 0) && (getConfig('beg_active') == 'Y')) {
- // Okay, include last online timestamp
- $whereStatement1 .= " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
- } // END - if
+ // Let's check if there are some points left we can pay...
+ if ((isExtensionActive('autopurge')) && (isBegActiveEnabled()) && ((getApInactiveSince() > 0))) {
+ // Okay, include last online timestamp
+ $whereStatement .= ' AND (UNIX_TIMESTAMP() - `last_online`) < {?ap_inactive_since?}';