X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fdaily%2Fdaily_earning.php;h=b38fe4b8a23a4d8c6410c29aaf293f621e3899dc;hb=6b2fd39cc3c1d16e4495bbf2645e77be3fa2badd;hp=d554e53bb53447dccda2b6209e74280fe8dd6f43;hpb=2f0e149667e2ae37728af52a25c0363f8b0bc6ce;p=mailer.git diff --git a/inc/daily/daily_earning.php b/inc/daily/daily_earning.php index d554e53bb5..b38fe4b8a2 100644 --- a/inc/daily/daily_earning.php +++ b/inc/daily/daily_earning.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,11 +38,11 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) { - // Do not execute when script is in CSS mode or no daily reset +} elseif ((!isHtmlOutputMode()) || (!isDailyResetEnabled())) { + // Do not execute when script is in non-HTML mode or no daily reset return; -} elseif ((!isExtensionActive('earning')) && (isDebugModeEnabled())) { - logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-earning disabled.'); +} elseif (!isExtensionActive('earning')) { + if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-earning disabled.'); return; }