X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Freset%2Freset_bonus.php;h=c8370019f5b13b8d4f1d1a4cee7d3f2f7c21ea75;hp=9a5d8a77f19d6159b96b55c1bd00404732c6e04b;hb=71c07e991fc7f5393317f4d9adf4ecdbc26b9aa3;hpb=995488beda665a1fc3de65df95f2d1ae236d1245 diff --git a/inc/reset/reset_bonus.php b/inc/reset/reset_bonus.php index 9a5d8a77f1..c8370019f5 100644 --- a/inc/reset/reset_bonus.php +++ b/inc/reset/reset_bonus.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif ((getOutputMode() != 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]