X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_sponsor.php;h=e6924acb4f7d52700ac23069cd1f19d39b83f1de;hp=a3e1eeb8700de533cf75d7c458079fcbdbbb64e4;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb diff --git a/inc/modules/admin/what-unlock_sponsor.php b/inc/modules/admin/what-unlock_sponsor.php index a3e1eeb870..e6924acb4f 100644 --- a/inc/modules/admin/what-unlock_sponsor.php +++ b/inc/modules/admin/what-unlock_sponsor.php @@ -1,7 +1,7 @@ 0) { + if (countSelection(postRequestParameter('id')) > 0) { // At least one entry selected - foreach (postRequestElement('id') as $id => $selected) { + foreach (postRequestParameter('id') as $id => $selected) { // Secure id number and init $content $content = array( 'id' => bigintval($id), @@ -91,7 +91,7 @@ ORDER BY sp.pay_name", // Transfer data to array $data = array( 'admin_id' => $content['email'], - 'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'], + 'order' => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'], 'stamp' => generateDateTime($content['pay_ordered'], 2), 'pname' => $content['pay_name'], ); @@ -136,18 +136,18 @@ LIMIT 1", FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`='%s' LIMIT 1", array(bigintval($content['refid'])), __FILE__, __LINE__); - $REFERRAL = SQL_FETCHARRAY($result); + $REFERAL = SQL_FETCHARRAY($result); // Send warnings out? - if ($REFERRAL['receive_warnings'] == 'Y') { + if ($REFERAL['receive_warnings'] == 'Y') { // Translate some data - $REFERRAL['points'] = translateComma($REFERRAL['points']); - $REFERRAL['ref_points'] = translateComma(getConfig('sponsor_ref_points')); - $REFERRAL['gender'] = translateGender($REFERRAL['gender']); + $REFERAL['points'] = translateComma($REFERAL['points']); + $REFERAL['ref_points'] = translateComma(getConfig('sponsor_ref_points')); + $REFERAL['gender'] = translateGender($REFERAL['gender']); // Send notification to referal - $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERRAL); - sendEmail($REFERRAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG); + $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL); + sendEmail($REFERAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG); } // Free memory