$lastOnline = '%s';
$ONLINE = '';
-if (isExtensionActive('autopurge')) {
+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
// Let's check if there are some points left we can pay...
$count = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the template
- // @TODO points->beg_points
- $content = array(
- 'cnt' => $count,
- 'userid' => $content['userid'],
- 'points' => $content['beg_points'],
- 'last_online' => generateDateTime($content['last_online'], 2),
- );
+ $content['cnt'] = $count;
+ $content['last_online'] = generateDateTime($content['last_online'], 2);
// Load row template
$OUT .= loadTemplate('member_list_beg_row', true, $content);
$count++;
} // END - while
} else {
- // No one is interested in our "active rallye" ! :-(
+ // No one is interested in our "begging rallye" ! :-(
$OUT = loadTemplate('member_beg_404', true);
}