// 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__);
// 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']);
// 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