X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_100_bonus.php;h=4686d552966307861782619d0f09bb243c30e02f;hb=3b15416a92af60582c1b622e2bff5ae476c647c1;hp=6bfb16c447fe07f0c00f1515b00e9ae7195dfa9c;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git diff --git a/inc/reset/reset_100_bonus.php b/inc/reset/reset_100_bonus.php index 6bfb16c447..4686d55296 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'], '{--MEMBER_BONUS_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",