]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_surfbar.php
Swapped all
[mailer.git] / inc / daily / daily_surfbar.php
index a6633a661345536e66eb4a997d44eac7014cfd48..d211d2e285e63412758b220f6a9d918f237230fa 100644 (file)
 // 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('surfbar')) && (isDebugModeEnabled())) {
-       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-surfbar disabled.');
+} elseif (!isExtensionActive('surfbar')) {
+       if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-surfbar disabled.');
        return;
 }