X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_beg.php;h=28e8f6abaaa58a0f561280cb9a35c97c183e8586;hb=4c83f0cc7459cad9ec9c1c68963f5365155ee935;hp=65a445250150c5d9535f60a9f62ee8cca80bdd12;hpb=d5ee31ebfc85f22fc691b8c2753c42e188c1c4ef;p=mailer.git diff --git a/inc/modules/admin/what-list_beg.php b/inc/modules/admin/what-list_beg.php index 65a4452501..28e8f6abaa 100644 --- a/inc/modules/admin/what-list_beg.php +++ b/inc/modules/admin/what-list_beg.php @@ -41,7 +41,7 @@ ADD_DESCR("admin", __FILE__); if (getConfig('beg_rallye') == "Y") { // Shall I withdraw now? - if (isset($_POST['withdraw'])) { + if (REQUEST_ISSET_POST(('withdraw'))) { // Okay, let's prepare... $curr = date("m", time()) - 1; if (strlen($curr) == 1) $curr = "0".$curr; @@ -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__);