]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_bonus.php
New wrapper functions introduced
[mailer.git] / inc / reset / reset_bonus.php
index f57a665cf63555f21550fe3080572020fdc74ef2..c8370019f5b13b8d4f1d1a4cee7d3f2f7c21ea75 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')) {
@@ -52,14 +52,14 @@ if (!defined('__SECURITY')) {
 purgeExpiredTurboBonus();
 
 // Reset accounts
-SQL_QUERY("UPDATE
+SQL_QUERY('UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `turbo_bonus`=0,
        `login_bonus`=0,
        `bonus_order`=0,
        `bonus_stats`=0,
-       `bonus_ref`=0",
+       `bonus_ref`=0',
        __FILE__, __LINE__);
 
 // [EOF]