]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_beg.php
More globals rewritten, see #100
[mailer.git] / inc / modules / admin / what-list_beg.php
index 65a445250150c5d9535f60a9f62ee8cca80bdd12..f99652bc31b5542e3311cdb52c52e80e025cf5c2 100644 (file)
@@ -50,17 +50,17 @@ if (getConfig('beg_rallye') == "Y") {
        } // END - if
 
        // 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');
        } // END - if
 
        // Check if at least one is in the active rallye
        $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, beg_points, last_online
 FROM `{!_MYSQL_PREFIX!}_user_data`
-WHERE `status`='CONFIRMED' AND beg_points > 0".$LAST."
+WHERE `status`='CONFIRMED' AND beg_points > 0".$lastOnline."
 ORDER BY beg_points DESC, last_online DESC, userid",
         array($ONLINE), __FILE__, __LINE__);