]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
More globals rewritten, see #100
[mailer.git] / inc / modules / admin / what-list_bonus.php
index f7719b9a3227789d97ef047cbe85d673d15414c5..3148e6cedcec92c7b63055d7c75b8be8a18244e0 100644 (file)
@@ -65,17 +65,17 @@ if (getConfig('bonus_active') == "Y") {
        }
 
        // Autopurge installed?
-       $LAST = "%s"; $ONLINE = "";
+       $lastOnline = "%s"; $ONLINE = "";
        if (EXT_IS_ACTIVE("autopurge")) {
                // Use last online timestamp to keep inactive members away from here
-               $LAST   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
+               $lastOnline   = " AND last_online >= (UNIX_TIMESTAMP() - %s)";
                $ONLINE = getConfig('ap_inactive_since');
        }
 
        // Check if at least one is in the active rallye
        $result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE `status`='CONFIRMED' AND ".$USE." > 0".$LAST."
+WHERE `status`='CONFIRMED' AND ".$USE." > 0".$lastOnline."
 ORDER BY points DESC, last_online DESC, userid",
         array($ONLINE), __FILE__, __LINE__);