]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-beg2.php
'order_points' and locked are now displayed, some array elements/language ids renamed
[mailer.git] / inc / modules / member / what-beg2.php
index 30ff574716be4f119a1e904f4b8fc1ba4fdeac20..78285c2ca14ab22e2d9d034b7e14bff337216c6c 100644 (file)
@@ -54,9 +54,9 @@ if ((!isExtensionActive('beg')) && (!isAdmin())) {
 $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...