]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_100_bonus.php
Aliasing should be avoided, better we rename the column or/and use direct column...
[mailer.git] / inc / reset / reset_100_bonus.php
index 523df6bf0da1311a84118daca1706cf5c8840407..4686d552966307861782619d0f09bb243c30e02f 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) {
        // Do not execute when script is in CSS mode or no daily reset
        return;
 } elseif (!isExtensionActive('bonus')) {
@@ -72,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'], '{--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",