// Load message body for bonus mails
$message = loadEmailTemplate('beg_en_notify_body', '', '{PER}userid{PER}');
- $RECEIVER = ''; $UIDs = array();
+ $receiver = ''; $userids = array();
// Okay lets notify all users!
while ($content = merge_array($content, SQL_FETCHARRAY($result_main))) {
// 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('beg_' . $mode . '_notify', $content, $content['userid']);
// 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('beg_notify_bonus'), getConfig('beg_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main));
+ addBonusMailToQueue($subject, $message, $receiver, getConfig('beg_notify_bonus'), getConfig('beg_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main));
} // END - if
} // END - if