X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmails%2Fbonus_mails.php;h=5f0cee83710322b70382d8a5a593e2fdb0abfc4e;hb=27d3ef2b2af55933a48294ff9bc9750fdbe050eb;hp=0bc9f191ec2bce77a58f324fd3c7cbe55929662d;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/mails/bonus_mails.php b/inc/mails/bonus_mails.php index 0bc9f191ec..5f0cee8371 100644 --- a/inc/mails/bonus_mails.php +++ b/inc/mails/bonus_mails.php @@ -89,7 +89,7 @@ if (!empty($sql)) { // Load message body for bonus mails $message = loadEmailTemplate('bonus_en_notify_body', '', '{PER}userid{PER}'); - $RECEIVER = ''; $UIDs = array(); + $receiver = ''; $userids = array(); // Check for accounts to be notified $result_main = SQL_QUERY($sql, __FILE__, __LINE__); @@ -112,7 +112,7 @@ LIMIT 1", // Load email template and send it to the user! if ($sentBonusMails === true) { // Add userid to queue - $UIDs[] = $content['userid']; + $userids[] = $content['userid']; } else { // Send normal notification mail to the members $message = loadEmailTemplate('bonus_' . $mode . '_notify', $content, $content['userid']); @@ -123,13 +123,13 @@ LIMIT 1", // Shall I send out bonus mails? if ($sentBonusMails === true) { // Okay, make array to string - $RECEIVER = implode(';', $UIDs); + $receiver = implode(';', $userids); // Prepare URL $URL = 'modules.php?module=index&what=login'; // Insert mail - addBonusMailToQueue($subject, $message, $RECEIVER, getConfig('bonus_notify_points'), getConfig('bonus_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main)); + addBonusMailToQueue($subject, $message, $receiver, getConfig('bonus_notify_points'), getConfig('bonus_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main)); } // END - if } // END - if