X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fpool%2Fpool-bonus.php;h=e385882fb297c25f65ab357a86702d47655a6842;hp=7c295b2f340003af05a8499a766fb426cf1b2d42;hb=d016e24dd4686f613a17733b96bc28fac936a4ac;hpb=5ae157f2010b3aae3c6f2ecdc6ec7c30b305be4a diff --git a/inc/pool/pool-bonus.php b/inc/pool/pool-bonus.php index 7c295b2f34..e385882fb2 100644 --- a/inc/pool/pool-bonus.php +++ b/inc/pool/pool-bonus.php @@ -47,8 +47,6 @@ if (defined('__DAILY_RESET')) { } // Need this here -global $REPLACER; - // Only send bonus mail when bonus extension is active and maximum send-mails is not reached if ($GLOBALS['pool_cnt'] < getConfig('max_send')) { // Do we need to send out bonus mails? @@ -101,7 +99,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) { // Mark this user as "spammed" ;-) And place a line for him... if (REMOVE_RECEIVER($dummy, $key, $uid, $DATA['id'], $DATA['id'], true) == "done") { // Replace text variables - foreach ($REPLACER as $key => $value) { + foreach ($GLOBALS['replacer'] as $key => $value) { if (isset($DATA[$key])) $DATA['text'] = str_replace($value, $DATA[$key], $DATA['text']); } // END - foreach