X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_bonus.php;h=0b36b260e199efebecd8938b7dd40b71fc3eb78b;hb=7d9e77e65d6300658a2bc308cb48f2744ce023eb;hp=f7719b9a3227789d97ef047cbe85d673d15414c5;hpb=d5ee31ebfc85f22fc691b8c2753c42e188c1c4ef;p=mailer.git diff --git a/inc/modules/admin/what-list_bonus.php b/inc/modules/admin/what-list_bonus.php index f7719b9a32..0b36b260e1 100644 --- a/inc/modules/admin/what-list_bonus.php +++ b/inc/modules/admin/what-list_bonus.php @@ -42,7 +42,7 @@ ADD_DESCR("admin", __FILE__); if (getConfig('bonus_active') == "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; @@ -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__);