X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_100_bonus.php;h=7b480c1eafe03893be71f66feee8b21a9923f234;hb=ffe213c8e3f85119ddd5544214d0de9ecb833d98;hp=860af31134318f9cb90a00bf833e7875be156606;hpb=83574a6475896fbdc231e685e2ebb0ee4f3e6eba;p=mailer.git diff --git a/inc/reset/reset_100_bonus.php b/inc/reset/reset_100_bonus.php index 860af31134..7b480c1eaf 100644 --- a/inc/reset/reset_100_bonus.php +++ b/inc/reset/reset_100_bonus.php @@ -1,7 +1,7 @@ "); - // Check for 100% klickrate mails $result_bonus = SQL_QUERY("SELECT `id`, `userid`, `subject`, `timestamp_ordered`, `clicks`, `url` @@ -60,11 +61,8 @@ ORDER BY `userid` ASC", __FILE__, __LINE__); if (SQL_NUMROWS($result_bonus) > 0) { - // Remember stats bonus in constant - $content['points'] = translateComma(getConfig('bonus_stats')); - // We found some mail orders... - while ($content = merge_array($content, SQL_FETCHARRAY($result_bonus))) { + while ($content = SQL_FETCHARRAY($result_bonus)) { // Add points SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `bonus_stats`=`bonus_stats`+{?bonus_stats?} WHERE `userid`=%s LIMIT 1", array(bigintval($content['userid'])), __FILE__, __LINE__); @@ -74,7 +72,7 @@ if (SQL_NUMROWS($result_bonus) > 0) { // Load email template and send email $message = loadEmailTemplate('member_stats_bonus', $content, bigintval($content['userid'])); - sendEmail($content['userid'], getMessage('BONUS_MEMBER_STATS_SUBJECT'), $message); + sendEmail($content['userid'], '{--BONUS_MEMBER_STATS_SUBJECT--}', $message); // Update database $result_update = SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `bonus_stats_active`='Y' WHERE `id`=%s LIMIT 1",