displayMessage('{--ADMIN_BEG_WITHDRAW_PREPARED--}');
} // END - if
- // Autopurge installed?
+ // Init variable
$lastOnline = '';
- if (isExtensionActive('autopurge')) {
+
+ // Autopurge installed?
+ if ((isExtensionActive('autopurge')) && (isBegActiveEnabled()) && ((getApInactiveSince() > 0))) {
// Use last online timestamp to keep inactive members away from here
- $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
+ $lastOnline = ' AND (UNIX_TIMESTAMP() - `last_online`) >= {?ap_inactive_since?}';
} // END - if
// Check if at least one is in the active rallye
} // END - while
$content['rows'] = $OUT;
- $content['total'] = $total;
+ $content['total_points'] = $total;
// Check if we need to display form or not with manuel withdraw
if (getLastMonth() == getMonth()) {